1(self.webpackChunkapp=self.webpackChunkapp||[]).push([[452,691],{61691:(O,v,e)=>{"use strict";e.r(v),e.d(v,{ContactsModule:()=>t});var o=e(64762),n=e(89724),l=e(11048),a=e(6609);const d=[{path:"",children:[{path:"table",loadChildren:()=>Promise.all([e.e(679),e.e(136)]).then(e.bind(e,97136)).then(h=>h.ContactsTableModule)}]}];let u=class{};u=(0,o.__decorate)([(0,n.LVF)({imports:[a.Bz.forChild(d)],exports:[a.Bz]})],u);var c=e(67674);let t=class{};t=(0,o.__decorate)([(0,n.LVF)({imports:[l.ez,u,c.Tn]})],t)},75349:(O,v,e)=>{"use strict";e.d(v,{j:()=>h});var o=e(64762),n=e(89724),l=e(11048);let a=class{};a=(0,o.__decorate)([(0,n.LVF)({imports:[l.ez],exports:[]})],a);var d=e(77577);let u=class extends d.cf{};u=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,d.yC)({name:"email"})],u);var c=e(63512),t=e(93079);let h=class extends c.a${constructor(s,r){super(r,"email",s),this.angularFirestore=s,this.contactStore=r}};h.ctorParameters=()=>[{type:t.ST},{type:u}],h=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,o.__metadata)("design:paramtypes",[t.ST,u])],h)},75487:(O,v,e)=>{"use strict";e.d(v,{O:()=>a});var o=e(64762),n=e(89724),l=e(59614);let a=class{};a=(0,o.__decorate)([(0,n.LVF)({declarations:[],imports:[],exports:[],providers:[l.J]})],a)},59614:(O,v,e)=>{"use strict";e.d(v,{J:()=>N});var o=e(64762),n=e(89724),l=e(41334),a=e(25917),d=e(76666),u=e(54395),c=e(88002),t=e(59746),h=e(43190),i=e(77667),r=(e(990),e(11048));function f(R){return new l.y(_=>{const m=I=>_.next(I);m(R.snapshot);const D=R.on("state_changed",m);return R.then(I=>{m(I),_.complete()},I=>{m(R.snapshot),(I=>{_.error(I)})(I)}),function(){D()}}).pipe((0,u.b)(0))}function g(R){const _=f(R);return{task:R,then:R.then.bind(R),catch:R.catch.bind(R),pause:R.pause.bind(R),cancel:R.cancel.bind(R),resume:R.resume.bind(R),snapshotChanges:()=>_,percentageChanges:()=>_.pipe((0,c.U)(m=>m.bytesTransferred/m.totalBytes*100))}}function A(R,_,m){return{getDownloadURL:()=>(0,a.of)(void 0).pipe((0,t.QV)(_.outsideAngular),(0,h.w)(()=>R.getDownloadURL()),m),getMetadata:()=>(0,a.of)(void 0).pipe((0,t.QV)(_.outsideAngular),(0,h.w)(()=>R.getMetadata()),m),delete:()=>(0,d.D)(R.delete()),child:b=>A(R.child(b),_,m),updateMetadata:b=>(0,d.D)(R.updateMetadata(b)),put:(b,C)=>g(R.put(b,C)),putString:(b,C,D)=>g(R.putString(b,C,D)),listAll:()=>(0,d.D)(R.listAll())}}const w=new n.OlP("angularfire2.storageBucket"),U=new n.OlP("angularfire2.storage.maxUploadRetryTime"),F=new n.OlP("angularfire2.storage.maxOperationRetryTime");class y{constructor(_,m,b,C,D,I,P){this.schedulers=new i.HU(D),this.keepUnstableUntilFirst=(0,i.ss)(this.schedulers);const B=(0,i.on)(_,D,m);this.storage=(0,i.sI)(`${B.name}.storage.${b}`,"AngularFireStorage",B,()=>{const p=D.runOutsideAngular(()=>B.storage(b||void 0));return I&&p.setMaxUploadRetryTime(I),P&&p.setMaxOperationRetryTime(P),p},[I,P])}ref(_){return A(this.storage.ref(_),this.schedulers,this.keepUnstableUntilFirst)}refFromURL(_){return A(this.storage.refFromURL(_),this.schedulers,this.keepUnstableUntilFirst)}upload(_,m,b){return A(this.storage.ref(_),this.schedulers,this.keepUnstableUntilFirst).put(m,b)}}y.\u0275fac=function(_){return new(_||y)(n.LFG(i.Dh),n.LFG(i.xv,8),n.LFG(w,8),n.LFG(n.Lbi),n.LFG(n.R0b),n.LFG(U,8),n.LFG(F,8))},y.\u0275prov=n.Yz7({factory:function(){return new y(n.LFG(i.Dh),n.LFG(i.xv,8),n.LFG(w,8),n.LFG(n.Lbi),n.LFG(n.R0b),n.LFG(U,8),n.LFG(F,8))},token:y,providedIn:"any"}),y.ctorParameters=()=>[{type:void 0,decorators:[{type:n.tBr,args:[i.Dh]}]},{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[i.xv]}]},{type:String,decorators:[{type:n.FiY},{type:n.tBr,args:[w]}]},{type:Object,decorators:[{type:n.tBr,args:[n.Lbi]}]},{type:n.R0b},{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[U]}]},{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[F]}]}];class S{constructor(_,m){this.storage=_,this.asyncPipe=new r.Ov(m)}transform(_){return _!==this.path&&(this.path=_,this.downloadUrl$=this.storage.ref(_).getDownloadURL()),this.asyncPipe.transform(this.downloadUrl$)}ngOnDestroy(){this.asyncPipe.ngOnDestroy()}}S.\u0275fac=function(_){return new(_||S)(n.Y36(y,16),n.Y36(n.sBO,16))},S.\u0275pipe=n.Yjl({name:"getDownloadURL",type:S,pure:!1}),S.ctorParameters=()=>[{type:y},{type:n.sBO}];class x{}x.\u0275fac=function(_){return new(_||x)},x.\u0275mod=n.oAB({type:x}),x.\u0275inj=n.cJS({}),("undefined"==typeof ngJitMode||ngJitMode)&&n.kYT(x,{declarations:[S],exports:[S]});class L{}L.\u0275fac=function(_){return new(_||L)},L.\u0275mod=n.oAB({type:L}),L.\u0275inj=n.cJS({providers:[y],imports:[x]}),("undefined"==typeof ngJitMode||ngJitMode)&&n.kYT(L,{exports:[x]});var H=e(88229),K=e(19725);let N=class{constructor(_,m){this.httpClient=_,this.storage=m}uploadFileForDocument(_,m){const b=new H.t(1),C=this.storage.ref(_);return b.next({statusLine:"Datei wird hochgeladen..."}),C.put(m,{contentType:m.type}).then(function(D){b.next({statusLine:"Datei wurde hochgeladen.",result:C}),b.complete()}),b}downloadFile(_){return this.storage.ref(_).getDownloadURL().toPromise()}deleteFile(_){return this.storage.ref(_).delete().toPromise()}};N.ctorParameters=()=>[{type:K.eN},{type:y}],N=(0,o.__decorate)([(0,n.GSi)(),(0,o.__metadata)("design:paramtypes",[K.eN,y])],N)},49315:(O,v,e)=>{"use strict";e.d(v,{Y:()=>u,F:()=>F});var o=e(64762),n=e(89724),l=e(11048),a=e(55893),d=e(5917);let u=class{};u=(0,o.__decorate)([(0,n.LVF)({imports:[l.ez,a.pL,d.w$],exports:[]})],u);var c=e(19725),t=e(14786),h=e(3673),i=e.n(h),s=e(4902),r=e(27482),f=e(28888),g=e(81037);let F=class{constructor(S,x,L,H,K,N,R){this.httpClient=S,this.toastr=x,this.loader=L,this.windowService=H,this.fileSaverService=K,this.googleTagManagerService=N,this.ratingDialogService=R}generatePdf(S,x,L){const H=this.loader.useRef("pdf-download");let K;H.start(),K=void 0!==S.email&&null!==S.email?this.toastr.loading("Bitte warten. E-Mail wird versendet...",{autoClose:!1}):this.toastr.loading("Bitte warten. PDF Datei wird generiert...",{autoClose:!1});const N=t.N.functionsUrl+"generatePdf",R={context:S,documents:x,filename:L+".pdf"};return this.httpClient.post(N,R,{responseType:"blob"}).toPromise().then(_=>{void 0!==S.email&&null!==S.email?(this.googleTagManagerService.pushTag({event:"document_send",file_name:L,file_extension:"pdf",send_by:"email"}),this.toastr.success("E-Mail wurde versendet."),this.ratingDialogService.showRatingDialog()):(this.googleTagManagerService.pushTag({event:"document_download",file_name:L,file_extension:"pdf"}),this.fileSaverService.save(_,L+".pdf"),this.toastr.success("PDF Datei wurde generiert."),this.ratingDialogService.showRatingDialog())}).catch(_=>{void 0!==S.email&&null!==S.email?this.toastr.error("Fehler beim Versenden der E-Mail. Bitte laden Sie die Seite neu und versuchen Sie es erneut."):this.toastr.error("Fehler beim Erstellen der PDF-Datei. Bitte laden Sie die Seite neu und versuchen Sie es erneut."),this.toastr.loading("Seite wird in f\xfcnf Sekunden neu geladen. Bitte warten..."),setTimeout(()=>{this.windowService.windowRef.location.reload()},5e3)}).finally(()=>{H.stop(),K.close()})}generatePdfAndPrint(S,x,L){const H=this.loader.useRef("pdf-print");H.start();const K=this.toastr.loading("Bitte warten. Ausdrucken des Dokuments wird vorbereitet...",{autoClose:!1}),N=t.N.functionsUrl+"generatePdf",R={context:S,documents:x,filename:L+".pdf"};return this.httpClient.post(N,R,{responseType:"blob"}).toPromise().then(_=>{const m=new Blob([_],{type:"application/pdf"}),b=window.URL.createObjectURL(m);try{this.googleTagManagerService.pushTag({event:"document_print",f
1ile_name:L,file_extension:"pdf"}),i()(b)}catch(C){this.toastr.error("Aufgrund der Sicherheitseinstellungen in Ihrem Browser ist das Ausdrucken nicht m\xf6glich. Alternativ k\xf6nnen Sie das Dokument herunterladen oder sich per E-Mail zuschicken lassen.")}}).catch(_=>{this.toastr.error("Fehler beim Erzeugen des Dokumentes. Bitte laden Sie die Seite neu und versuchen Sie es erneut."),this.toastr.loading("Seite wird in f\xfcnf Sekunden neu geladen. Bitte warten..."),setTimeout(()=>{this.windowService.windowRef.location.reload()},5e3)}).finally(()=>{K.close(),H.stop()})}};F.ctorParameters=()=>[{type:c.eN},{type:f.jE},{type:s.dL},{type:r.u},{type:a.m9},{type:d.kK},{type:g.Gy}],F=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,o.__metadata)("design:paramtypes",[c.eN,f.jE,s.dL,r.u,a.m9,d.kK,g.Gy])],F)},2426:(O,v,e)=>{"use strict";e.d(v,{TV:()=>he});var h,ve,o=e(64762),n=e(89724),l=e(11048),a=e(45529),d=e(97678),c=(e(17358),e(1659)),t=e(275);(ve=h||(h={})).edit="edit",ve.complete="complete";const i=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];var s=e(39761),r=e(88002),f=e(6578),g=e(98116),A=e(42538),w=e(6609),U=e(96114),F=e(82472),y=e(28888);const S=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,}))$"].join(""));let x=class{constructor(z,te,me,ce,we,Fe,Oe,Ne){this.formBuilder=z,this.profileInterviewService=te,this.firebaseAuthService=me,this.translocoService=ce,this.toastr=we,this.router=Fe,this.activatedRoute=Oe,this.cdRef=Ne,this.subSink=new U.Y,this.selectedTab=new c.NI(0),this.stepIndex=i,this.genderFormGroupSubmitted=!1,this.genderExpanded=!0,this.genders=g.mb,this.titleMaxLength=20,this.firstnameMinLength=2,this.firstnameMaxLength=50,this.usedFirstnameMinLength=2,this.usedFirstnameMaxLength=50,this.middlenameMaxLength=100,this.lastnameMinLength=2,this.lastnameMaxLength=50,this.today=new Date,this.startBirthdayDate=new Date(this.today.getFullYear()-60,this.today.getMonth(),this.today.getDate()),this.minBirthdayDate=new Date(this.today.getFullYear()-110,this.today.getMonth(),this.today.getDate()),this.maxBirthdayDate=new Date(this.today.getFullYear()-16,this.today.getMonth(),this.today.getDate()),this.emailMaxLength=255,this.sendingEmail=!1,this.emailSend=!1}ngOnDestroy(){this.subSink.unsubscribe()}ngOnInit(){this.profile$=this.profileInterviewService.getProfile(),this.user$=this.firebaseAuthService.getUser(),this.initNameFormGroup(),this.initBirthFormGroup(),this.initAddressFormGroup(),this.initCommunicationFormGroup(),this.profile$.subscribe(z=>{void 0!==z&&(this.birthday=new Date(z.birthday),this.onCommunicationFormCancel(z))}),this.subSink.add(this.activatedRoute.queryParams.subscribe(z=>{if(void 0!==z.substep&&null!==z.substep)switch(z.substep){case"name":this.selectedTab.setValue(0);break;case"birthday":this.selectedTab.setValue(1);break;case"address":this.selectedTab.setValue(2);break;case"communication":this.selectedTab.setValue(3)}}))}initGenderIdentityFormControl(){this.genderIdentityFormControl=this.nameFormGroup.get("genderIdentity"),this.filteredGenders$=this.genderIdentityFormControl.valueChanges.pipe((0,s.O)(""),(0,r.U)(z=>z?this.filterGenders(z):this.genders.slice()))}filterGenders(z){return this.genders.filter(te=>0===te.name.toLowerCase().indexOf(z.toLowerCase()))}onLegalGenderChanged(){"male"===this.nameFormGroup.controls.legalGender.value&&this.nameFormGroup.controls.genderIdentity.setValue("M\xe4nnlich"),"female"===this.nameFormGroup.controls.legalGender.value&&this.nameFormGroup.controls.genderIdentity.setValue("Weiblich"),"miscellaneous"===this.nameFormGroup.controls.legalGender.value&&this.nameFormGroup.controls.genderIdentity.setValue(""),this.onNameFormSubmit()}resetGenderIdentityControl(){this.genderIdentityFormControl.reset(),this.nameFormGroup.markAsDirty()}initNameFormGroup(){this.nameFormGroup=this.formBuilder.group({legalGender:["",[c.kI.required]],genderIdentity:["",[c.kI.required]],title:["",[c.kI.maxLength(this.titleMaxLength)]],firstname:["",[c.kI.required,
1c.kI.minLength(this.firstnameMinLength),c.kI.maxLength(this.firstnameMaxLength)]],useDifferentName:[!1,[]],usedFirstname:["",[this.differentNameConditionallyRequiredValidator,c.kI.minLength(this.usedFirstnameMinLength),c.kI.maxLength(this.usedFirstnameMaxLength)]],middlename:["",[c.kI.maxLength(this.middlenameMaxLength)]],lastname:["",[c.kI.required,c.kI.minLength(this.lastnameMinLength),c.kI.maxLength(this.lastnameMaxLength)]]}),this.initGenderIdentityFormControl()}differentNameConditionallyRequiredValidator(z){return z.parent&&z.parent.get("useDifferentName").value?c.kI.required(z):null}onNameFormSubmit(){this.nameFormGroup.valid&&(this.profileInterviewService.upsertProfile({legalGender:this.nameFormGroup.controls.legalGender.value||null,genderIdentity:this.nameFormGroup.controls.genderIdentity.value||null,title:this.nameFormGroup.controls.title.value||null,firstname:this.nameFormGroup.controls.firstname.value||null,useDifferentName:this.nameFormGroup.controls.useDifferentName.value||null,usedFirstname:this.nameFormGroup.controls.usedFirstname.value||null,middlename:this.nameFormGroup.controls.middlename.value||null,lastname:this.nameFormGroup.controls.lastname.value||null}),this.nameFormGroup.markAsPristine(),this.nameFormGroup.markAsUntouched())}onNameFormCancel(z){this.nameFormGroup.patchValue({legalGender:z.legalGender,genderIdentity:z.genderIdentity,title:z.title,firstname:z.firstname,useDifferentName:z.useDifferentName,usedFirstname:z.usedFirstname,middlename:z.middlename,lastname:z.lastname}),this.nameFormGroup.markAsPristine(),this.nameFormGroup.markAsUntouched()}checkNameFormAndCompleteStep(){this.nameFormGroup.valid?this.completeStep():(this.nameFormGroup.markAllAsTouched(),this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben."))}initBirthFormGroup(){this.birthFormGroup=this.formBuilder.group({birthday:["",[c.kI.required]],birthplace:["",[c.kI.required]]})}onBirthFormSubmit(){this.birthplaceComponent.updateValueAndValidity(),(!this.birthplaceComponent.dirty||null!=this.birthplaceComponent.germanAddress.getValue())&&this.birthFormGroup.valid&&(this.birthplaceComponent.dirty?this.profileInterviewService.upsertProfile({birthday:this.birthFormGroup.controls.birthday.value.toString()||null,birthplaceDisplayText:this.birthplaceComponent.germanAddress.getValue().displayAddress||null,birthplaceGoogleMapsId:this.birthplaceComponent.germanAddress.getValue().gmID||null,birthplaceGoogleMapsPlaceId:this.birthplaceComponent.germanAddress.getValue().placeID||null,birthplaceGoogleMapsUrl:this.birthplaceComponent.germanAddress.getValue().url||null,birthplaceLatitude:this.birthplaceComponent.germanAddress.getValue().geoLocation.latitude||null,birthplaceLongitude:this.birthplaceComponent.germanAddress.getValue().geoLocation.longitude||null,birthplaceCountryShort:this.birthplaceComponent.germanAddress.getValue().country.short||null,birthplaceCountryLong:this.birthplaceComponent.germanAddress.getValue().country.long||null,birthplaceStateShort:this.birthplaceComponent.germanAddress.getValue().state.short||null,birthplaceStateLong:this.birthplaceComponent.germanAddress.getValue().state.long||null,birthplaceVicinity:this.birthplaceComponent.germanAddress.getValue().vicinity||null,birthplaceLocalityShort:this.birthplaceComponent.germanAddress.getValue().locality.short||null,birthplaceLocalityLong:this.birthplaceComponent.germanAddress.getValue().locality.long||null,birthplaceSubLocality:this.birthplaceComponent.germanAddress.getValue().sublocality||null,birthplacePostalCode:this.birthplaceComponent.germanAddress.getValue().postalCode+""||null,birthplaceName:this.birthplaceComponent.germanAddress.getValue().name||null}):this.profileInterviewService.upsertProfile({birthday:this.birthFormGroup.controls.birthday.value.toString()||null}),this.birthFormGroup.markAsPristine(),this.birthFormGroup.markAsUntouched())}onBirthFormCancel(z){this.birthday=new Date(z.birthday),this.birthFormGroup.patchValue({birthplace:z.birthplaceDisplayText}),this.birthplaceComponent.reset(),this.birthFormGroup.markAsPristine(),this.birthFormGroup.markAsUntouched()}checkBirthFormAndCompleteStep(){this.birthFormGroup.valid?this.completeStep():(this.birthFormGroup.markAllAsTouched(),this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben."))}initAddressFormGroup(){this.addressFormGroup=this.formBuilder.group({address:["",[c.kI.required]]})}
1onAddressFormSubmit(){this.addressFormGroup.updateValueAndValidity(),this.addressFormGroup.valid&&null!=this.addressComponent.germanAddress.getValue()&&(this.profileInterviewService.upsertProfile({addressDisplayText:this.addressComponent.germanAddress.getValue().displayAddress||null,addressGoogleMapsId:this.addressComponent.germanAddress.getValue().gmID||null,addressGoogleMapsPlaceId:this.addressComponent.germanAddress.getValue().placeID||null,addressGoogleMapsUrl:this.addressComponent.germanAddress.getValue().url||null,addressLatitude:this.addressComponent.germanAddress.getValue().geoLocation.latitude||null,addressLongitude:this.addressComponent.germanAddress.getValue().geoLocation.longitude||null,addressCountryShort:this.addressComponent.germanAddress.getValue().country.short||null,addressCountryLong:this.addressComponent.germanAddress.getValue().country.long||null,addressStateShort:this.addressComponent.germanAddress.getValue().state.short||null,addressStateLong:this.addressComponent.germanAddress.getValue().state.long||null,addressVicinity:this.addressComponent.germanAddress.getValue().vicinity||null,addressLocalityShort:this.addressComponent.germanAddress.getValue().locality.short||null,addressLocalityLong:this.addressComponent.germanAddress.getValue().locality.long||null,addressSubLocality:this.addressComponent.germanAddress.getValue().sublocality||null,addressPostalCode:this.addressComponent.germanAddress.getValue().postalCode+""||null,addressStreetName:this.addressComponent.germanAddress.getValue().streetName||null,addressStreetNumber:this.addressComponent.germanAddress.getValue().streetNumber||null,addressName:this.addressComponent.germanAddress.getValue().name||null}),this.addressFormGroup.markAsPristine(),this.addressFormGroup.markAsUntouched())}onAddressFormCancel(z){this.addressFormGroup.patchValue({address:z.addressDisplayText}),this.addressComponent.reset(),this.addressFormGroup.markAsPristine(),this.addressFormGroup.markAsUntouched()}checkAddressFormAndCompleteStep(){this.addressFormGroup.valid?this.completeStep():(this.addressFormGroup.markAllAsTouched(),this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben."))}initCommunicationFormGroup(){this.communicationFormGroup=this.formBuilder.group({phone:["",[]],mobile:["",[]],email:["",[c.kI.maxLength(this.emailMaxLength),c.kI.pattern(S)]]})}onCommunicationFormSubmit(){this.communicationFormGroup.valid?(this.profileInterviewService.upsertProfile({phone:this.communicationFormGroup.controls.phone.value||null,mobile:this.communicationFormGroup.controls.mobile.value||null,email:this.communicationFormGroup.controls.email.value||null}),this.communicationFormGroup.markAsPristine(),this.communicationFormGroup.markAsUntouched()):this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben.")}onCommunicationFormCancel(z){this.communicationFormGroup.patchValue({phone:z.phone,mobile:z.mobile,email:z.email}),this.communicationFormGroup.markAsPristine(),this.communicationFormGroup.markAsUntouched()}checkCommunicationFormAndCompleteStep(){this.communicationFormGroup.valid?this.nextPage():(this.communicationFormGroup.markAllAsTouched(),this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben."))}getStepStatus(z,te){if(void 0!==this.stepper&&void 0!==te){switch(z){case 0:if(null!=te.legalGender&&null!=te.genderIdentity&&null!=te.firstname&&null!=te.lastname)return h.complete;break;case 1:if(null!=te.birthday&&null!=te.birthplaceGoogleMapsId)return h.complete;break;case 2:if(null!=te.addressGoogleMapsId)return h.complete;break;case 3:if(null!=te.phone||null!=te.mobile||null!=te.email)return h.complete}return this.stepper._getIndicatorType(z)}}completeStep(){this.stepper.selected.completed=!0,setTimeout(()=>{this.stepper.next()},1e3)}nextPage(){setTimeout(()=>{this.pages.next()},1e3)}onStepSelectionChange(z){let te="name";switch(z.selectedIndex){case 0:te="name";break;case 1:te="birthday";break;case 2:te="address";break;case 3:te="communication"}this.navigateToStep(te)}navigateToStep(z){if(null!=z){const te={substep:z};this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:te,queryParamsHandling:"merge"})}}checkIfEmailVerified(){this.firebaseAuthService.reload().then(()=>{this.firebaseAuthService.refreshToken().then(()=>{this.cdRef.markForCheck()})})}resentEmailVerificationLink(){this.sendingEmail=!0,this.firebaseAuthService.resendEmailVerificationLink().toPromise().then(z=>{this.toastr.success("E-Mail mit Best\xe4tigungs-Link wurde verschickt. Bitte \xfcberpr\xfcfen Sie Ihr E-Mail Postfach.")}).catch(z=>{400===z.status&&this.toastr.error("Best\xe4tigungs-Link wurde zu oft verschickt. Bitte \xfcberpr\xfcfen Sie ggf. Ihren Spam-Ordner.")}).finally(()=>{this.emailSend=!0,this.sendingEmail=!1})}onUseDifferentNameChanged(z){0==z.checked&&(this.nameFormGroup.controls.usedFirstname.setValue(null),this.onNameFormSubmit())}};x.ctorParameters=()=>[{type:c.qu},{type:g.PM},{type:F.XP},{type:t.Vn},{type:y.jE},{type:w.F0},{type:w.gz},{type:n.sBO}],x.propDecorators={pages:[{type:n.IIB}],stepper:[{type:n.i9L,args:["stepper"]}],birthplaceComponent:[{type:n.i9L,args:["birthplaceComponent"]}],addressComponent:[{type:n.i9L,args:["addressComponent"]}],phoneComponent:[{type:n.i9L,args:["phoneComponent"]}],mobileComponent:[{type:n.i9L,args:["mobileComponent"]}]},x=(0,o.__decorate)([(0,n.wA2)({selector:"personal-information",template:a,styles:[d]}
1),(0,o.__metadata)("design:paramtypes",[c.qu,g.PM,F.XP,t.Vn,y.jE,w.F0,w.gz,n.sBO])],x);var L=e(6720),H=e(74848),K=e(16329),N=e(71778),R=e(17670),_=e(35691),m=e(79720),b=e(55821),C=e(63472),D=e(58904),I=e(20038),P=e(79538),B=e(96088),p=e(60449),Y=e(21694),j=e(77232),ee=e(51531),ne=e(26590),se=e(96146);let he=class{constructor(z){this.iconsRegistry=z,z.registerIcons([p.ivS,p.psE,p.vFQ,p.OJg,p.H0T,p.dbp,p.nYG,p.nPM,p.Syn,p.Iwm,p.GMr,p.gMU,p.cwp,p.Lv_,p.s$J,Y.ucf,Y.YvH])}};he.ctorParameters=()=>[{type:N.B}],he=(0,o.__decorate)([(0,n.LVF)({imports:[l.ez,K.o9,R.Q,c.u5,c.UX,_.lN,m.vV,b.Bb,C.ot,D.c,I.FA,L.T5,B.p9,H.Ps,N.Q,p.qOM,Y.e2h,A.f,P.ED,j.su,f.Sr,se.AV],declarations:[x],exports:[x],providers:[{provide:ee.Ad,useValue:"de-DE"},{provide:ne.o8,useValue:{useUtc:!0}},{provide:ee._A,useClass:ne.t7,deps:[ee.Ad,ne.o8]},{provide:ee.sG,useValue:{parse:{dateInput:"DD.MM.YYYY"},display:{dateInput:"DD.MM.YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}]}),(0,o.__metadata)("design:paramtypes",[N.B])],he)},81037:(O,v,e)=>{"use strict";e.d(v,{Gy:()=>Be,Vy:()=>P,Xt:()=>Te});var c,o=e(64762),n=e(89724),l=e(11048),a=e(1659),d=e(49882),u=e(28019);let t=c=class{constructor(){this.stars=[5,4,3,2,1],this.tooltip=["sehr zufrieden","zufrieden","neutral","unzufrieden","sehr unzufrieden"],this.propagateChange=Pe=>{},this.disabled||(this.disabled=!1)}ngOnInit(){}rate(Pe){this.disabled||this.propagateChange(Pe)}writeValue(Pe){this.ratingCheckbox&&null===Pe&&this.ratingCheckbox.forEac
1h(je=>{je.nativeElement.checked=!1}),this.value=Pe}registerOnChange(Pe){this.propagateChange=Pe}registerOnTouched(Pe){}};t.ctorParameters=()=>[],t.propDecorators={value:[{type:n.r_U}],id:[{type:n.IIB}],disabled:[{type:n.IIB}],ratingCheckbox:[{type:n.vR,args:["ratingCheckbox"]}]},t=c=(0,o.__decorate)([(0,n.wA2)({selector:"star-rating",template:d,providers:[{provide:a.JU,useExisting:(0,n.Gpc)(()=>c),multi:!0}],styles:[u]}),(0,o.__metadata)("design:paramtypes",[])],t);var h=e(74848),i=e(72234),s=e(78485),r=e(98315),f=e(66843),g=e(7972),A=e(96114);let w=class{constructor(Pe,je){this.formBuilder=Pe,this.ref=je,this.subSink=new A.Y,this.formSubmitted=!1,this.form=this.formBuilder.group({rating:["",a.kI.required]})}ngOnInit(){}ngOnDestroy(){this.subSink.unsubscribe()}submit(){this.formSubmitted=!0,this.form.valid&&this.ref.close({rated:!0,rating:this.form.controls.rating.value})}close(){this.ref.close({rated:!1})}};w.ctorParameters=()=>[{type:a.qu},{type:s.so}],w=(0,o.__decorate)([(0,n.wA2)({selector:"rating-dialog",template:r,animations:[g.OU,g.aD,g.Gl],styles:[f]}),(0,o.__metadata)("design:paramtypes",[a.qu,s.so])],w);var U=e(96146),F=e(63472),y=e(71778),S=e(17670),x=e(16329),L=e(77577);let H=class extends L.cf{constructor(){super()}};H.ctorParameters=()=>[],H=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,L.yC)({name:"rating",idKey:"id"}),(0,o.__metadata)("design:paramtypes",[])],H);var K=e(63512),N=e(93079);let R=class extends K.a${constructor(Pe,je){super(je,"rating",Pe),this.angularFirestore=Pe,this.ratingStore=je}};R.ctorParameters=()=>[{type:N.ST},{type:H}],R=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,K.XA)({path:"rating"}),(0,o.__metadata)("design:paramtypes",[N.ST,H])],R);var _=e(82472),m=e(26215);let b=class extends L.Gv{constructor(Pe){super(Pe),this.store=Pe}};b.ctorParameters=()=>[{type:H}],b=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,o.__metadata)("design:paramtypes",[H])],b);var C=e(16738),D=e.n(C),I=e(4902);let P=class{constructor(Pe,je,Le,He,qe){this.angularFirestore=Pe,this.firebaseAuthService=je,this.ratingService=Le,this.ratingQuery=He,this.loader=qe,this.subSink=new A.Y,this.rating$=new m.X(void 0),this.subSink.add(this.firebaseAuthService.getUser().subscribe(Ke=>{Ke?(this.subSink.add(this.ratingQuery.selectEntity(Ke.uid).subscribe(Je=>{this.rating$.next(Je)})),this.subSink.add(this.ratingService.syncDoc({id:Ke.uid}).subscribe())):this.rating$.next(void 0)}))}ngOnDestroy(){this.subSink.unsubscribe()}getRatingId(){return this.firebaseAuthService.getCurrentUserId()}getRating(){return this.rating$}upsertRating(Pe){const je=this.loader.useRef("rating");je.start(),Pe.id=this.getRatingId(),Pe.lastUpdated=D()().format();const Le=this.ratingService.upsert(Pe).then(()=>{});return Le.finally(()=>{je.stop()}),Le}};P.ctorParameters=()=>[{type:N.ST},{type:_.XP},{type:R},{type:b},{type:I.dL}],P=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,o.__metadata)("design:paramtypes",[N.ST,_.XP,R,b,I.dL])],P);var B=e(57308),p=e(47363),Y=e(16998),j=e(96775),ee=e(275),ne=e(28888),se=e(78732),le=e(27482),he=e(6609),ve=e(98116);let z=class{constructor(Pe,je,Le,He,qe,Ke,Je,tt,it,at,ct,ot,Ze){this.ref=Pe,this.data=je,this.customerSupportService=Le,this.ratingInterviewService=He,this.formBuilder=qe,this.translocoService=Ke,this.toastr=Je,this.profileInterviewService=tt,this.deviceDetectorService=it,this.firebaseAuthService=at,this.windowService=ct,this.router=ot,this.cdRef=Ze,this.subSink=new A.Y,this.screen="feedback",this.formSubmitted=!1,this.messageMinLength=2,this.messageMaxLength=2550,this.emailMaxLength=255,this.modules={toolbar:[["bold","italic","underline"],[{list:"bullet"}]]},this.messageSent={path:"/assets/lottie/message_sent.json"},this.styles={height:"160px"},this.customerSupportRequest=(0,Y.P)()}ngOnInit(){this.initFormGroup(),this.profileInterviewService.getProfile().subscribe(Pe=>{this.profile=Pe,void 0!==Pe&&this.form.patchValue({email:Pe.email||null})})}ngOnDestroy(){this.subSink.unsubscribe()}ngAfterContentInit(){this.cdRef.detectChanges()}initFormGroup(){this.form=this.formBuilder.group({message:["",[a.kI.required,a.kI.minLength(this.messageMinLength),a.kI.maxLength(this.messageMaxLength)]],email:["",[a.kI.required,a.kI.maxLength(this.emailMaxLength),a.kI.pattern(_.CU)]]})}save(){if(this.formSubmitted=!0,this.form.valid){let Pe="";this.deviceDetectorService.isDesktop()&&(Pe="Desktop"),this.deviceDetectorService.isTablet()&&(Pe="Tablet"),this.deviceDetectorService.isMobile()&&(Pe="Mobile");const je={email:this.form.controls.email.value,type:"feedback",message:this.form.controls.message.value,deviceType:Pe,os:this.deviceDetectorService.os,osVersion:this.deviceDetectorService.os_version,browser:this.deviceDetectorService.browser,browserVersion:this.deviceDetectorService.browser_version};this.ratingInterviewService.upsertRating({feedback:this.form.controls.message.value}).then(()=>
1{this.customerSupportService.createCustomerSupportRequest(je).then(()=>{this.screen="feedback-send",this.cdRef.detectChanges()}).catch(Le=>{this.toastr.error("Fehler beim Versenden der Nachricht. Bitte laden Sie die Seite neu und versuchen Sie es erneut."),this.toastr.loading("Seite wird in f\xfcnf Sekunden neu geladen. Bitte warten..."),setTimeout(()=>{this.windowService.windowRef.location.reload()},5e3)})})}else this.toastr.error("Bitte \xfcberpr\xfcfen Sie Ihre Angaben.")}onMessageContentChanged(Pe){this.form.markAsPristine()}close(){this.ref.close()}};z.ctorParameters=()=>[{type:s.so},{type:void 0,decorators:[{type:n.tBr,args:[s.WI]}]},{type:j.T},{type:P},{type:a.qu},{type:ee.Vn},{type:ne.jE},{type:ve.PM},{type:se.x0},{type:_.XP},{type:le.u},{type:he.F0},{type:n.sBO}],z=(0,o.__decorate)([(0,n.wA2)({selector:"feedback-dialog",template:B,animations:[g.OU,g.aD,g.Gl],styles:[p]}),(0,o.__metadata)("design:paramtypes",[s.so,Object,j.T,P,a.qu,ee.Vn,ne.jE,ve.PM,se.x0,_.XP,le.u,he.F0,n.sBO])],z);var te=e(35691),me=e(58904),ce=e(41335),we=e(21694),Fe=e(60449),Oe=e(82203),Ne=e(18897);let Ce=class{constructor(Pe,je){this.ref=Pe,this.data=je,this.subSink=new A.Y}ngOnDestroy(){this.subSink.unsubscribe()}close(){this.ref.close()}};Ce.ctorParameters=()=>[{type:s.so},{type:void 0,decorators:[{type:n.tBr,args:[s.WI]}]}],Ce=(0,o.__decorate)([(0,n.wA2)({selector:"thank-for-rating-dialog",template:Oe,animations:[g.OU,g.aD,g.Gl],styles:[Ne]}),(0,o.__metadata)("design:paramtypes",[s.so,Object])],Ce);var Ee=e(4213),xe=e(27511);let Te=class{constructor(Pe){this.iconsRegistry=Pe,Pe.registerIcons([Fe.LT$,Fe.J1K,Fe.zU6,we.Orl,Ee.Zv])}};Te.ctorParameters=()=>[{type:y.B}],Te=(0,o.__decorate)([(0,n.LVF)({imports:[l.ez,x.o9,a.u5,S.Q,a.UX,h.Ps,i.t,s.Is,U.AV,F.ot,y.Q,te.lN,me.c,ce.fi,xe.CT],declarations:[w,t,z,Ce],providers:[R,P],exports:[w,t]}),(0,o.__metadata)("design:paramtypes",[y.B])],Te);let Be=class{constructor(Pe,je,Le){this.dialog=Pe,this.deviceDetectorService=je,this.ratingInterviewService=Le,this.rating$=this.ratingInterviewService.getRating()}showRatingDialog(){const Pe=this.rating$.getValue();if(void 0!==Pe){if(void 0!==Pe.rating)return;const Le=new Date(Pe.lastUpdated);if(D()().diff(Le,"minutes")<720)return}let je;je=this.deviceDetectorService.isMobile()?this.dialog.open(w,{width:"100%",height:"100%",maxWidth:"100vw",maxHeight:"100vh",autoFocus:!1}).afterClosed():this.dialog.open(w,{width:"450px",autoFocus:!1}).afterClosed(),je.subscribe(Le=>{Le.rated?(this.ratingInterviewService.upsertRating({rating:Le.rating}),5===Le.rating?this.showThankYouDialog():this.showFeedbackDialog(Le.rating)):this.ratingInterviewService.upsertRating({})})}showFeedbackDialog(Pe){this.deviceDetectorService.isMobile()?this.dialog.open(z,{data:{rating:Pe},width:"100%",height:"100%",maxWidth:"100vw",maxHeight:"100vh",autoFocus:!1}):this.dialog.open(z,{data:{rating:Pe},width:"600px",autoFocus:!1})}showThankYouDialog(){this.deviceDetectorService.isMobile()?this.dialog.open(Ce,{width:"100%",height:"100%",maxWidth:"100vw",maxHeight:"100vh",autoFocus:!1}):this.dialog.open(Ce,{width:"600px",autoFocus:!1})}};Be.ctorParameters=()=>[{type:s.uw},{type:se.x0},{type:P}],Be=(0,o.__decorate)([(0,n.GSi)({providedIn:"root"}),(0,o.__metadata)("design:paramtypes",[s.uw,se.x0,P])],Be)},23485:(O,v,e)=>{"use strict";e.d(v,{E:()=>r});var o=e(64762),n=e(11048),l=e(89724),a=e(50984),d=e(40615);let u=class{constructor(g,A){this.el=g,this.core=A,this.mode="classic",this.hideElement()}onWindowScroll(g){this.core.onWindowScrollUp(this.mode)?this.showElement():this.hideElement()}onClick(){this.scrollToTop()}hideElement(){this.el.nativeElement.style.display="none"}showElement(){this.el.nativeElement.style.display=""}scrollToTop(){this.core.scrollToElement(this.el.nativeElement.id)}};u.ctorParameters=()=>[{type:l.SBq},{type:d.u}],u.propDecorators={mode:[{type:l.IIB,args:["scrollTopMode"]}],onWindowScroll:[{type:l.L6J,args:["window:scroll",["$event"]]}],onClick:[{type:l.L6J,args:["click"]}]},u=(0,o.__decorate)([(0,l.Xek)({selector:"[scrollTop]"}),(0,o.__metadata)("design:paramtypes",[l.SBq,d.u])],u);var c=e(96146),t=e(71778),h=e(74848),i=e(21694),s=e(65424);let r=class{constructor(g){this.iconsRegistry=g,g.registerIcons([i.ssC,i.liH])}};r.ctorParameters=()=>[{type:t.B}],r=(0,o.__decorate)([(0,l.LVF)({declarations:[a.n,s.O,u],imports:[n.ez,c.AV,t.Q,h.Ps],providers:[d.u],exports:[a.n,s.O,u]}),(0,o.__metadata)("design:paramtypes",[t.B])],r)},65424:(O,v,e)=>{"use strict";e.d(v,{O:()=>c});var o=e(64762),n=e(39490),l=e(12605),a=e(89724),d=e(40615),u=e(22759);let c=class{constructor(h,i,s){this.core=h,this.el=i,this.cdRef=s,this.position="right",this.theme="gray",this.mode="classic",this.contentSelector=".mat-sidenav-content",this.show=!1}set symbol(h){console.error(`ScrollTop: You are trying to set \`${h}\` as your symbol but Input \`[symbol]="'\u2191'"\` is deprecated now.\n\r`,"Use `Content projection` method, like this:\n\r\n\r",`<scrolltop>${h}</scrolltop>\n\r\n\r`)}onWindowScroll(h){this.show=this.core.onWindowScrollDown(this.mode)}ngAfterViewInit(){const h=document.querySelector(this.contentSelector);this.show=this.core.onWindowScrollForElementDown(h,this.mode),(0,u.R)(h,"scroll").subscribe(i=>{this.show=this.core.onWindowScrollForElementDown(h,this.mode)}),this.cdRef.detectChanges()}scrollToTop(){this.core.scrollToElement(this.el.nativeElement.id)}refresh(){const h=document.querySelector(this.contentSelector);this.show=this.core.onWindowScrollForElementDown(h,this.mode),this.cdRef.detectChanges()}};c.ctorParameters=()=>[{type:d.u},{type:a.SBq},{type:a.sBO}],c.propDecorators={backgroundColor:[{type:a.IIB}],symbolColor:[{type:a.IIB}],size:[{type:a.IIB}],tooltip:[{type:a.IIB}],symbol:[{type:a.IIB}],position:[{type:a.IIB}],theme:[{type:a.IIB}],mode:[{type:a.IIB}],contentSelector:[{type:a.IIB}],onWindowScroll:[{type:a.L6J,args:["window:scroll",["$event"]]}]},c=(0,o.__decorate)([(0,a.wA2)({selector:"scrollbottom",template:n,styles:[l]}),(0,o.__metadata)("design:paramtypes",[d.u,a.SBq,a.sBO])],c)},50984:(O,v,e)=>{"use strict";e.d(v,{n:()=>c});var o=e(64762),n=e(13408),l=e(16520),a=e(89724),d=e(40615),u=e(22759);let c=class{constructor(h,i,s){this.core=h,this.el=i,this.cdRef=s,this.contentSelector=".mat-sidenav-content",this.position="right",this.theme="gray",this.mode="classic",this.show=!1}set symbol(h){console.error(`ScrollTop: You are trying to set \`${h}\` as your symbol but Input \`[symbol]="'\u2191'"\` is deprecated now.\n\r`,"Use `Content projection` method, like this:\n\r\n\r",`<scrolltop>${h}</scrolltop>\n\r\n\r`)}onWindowScroll(h){this.show=this.core.onWindowScrollUp(this.mode)}ngAfterViewInit(){const h=document.querySelector(this.contentSelector);this.show=this.core.onWindowScrollForElementUp(h,this.mode),(0,u.R)(h,"scroll").subscribe(i=>{this.show=this.core.onWindowScrollForElementUp(h,this.mode)}),this.cdRef.detectChanges()}scrollToTop(){this.core.scrollToElement(this.el.nativeElement.id)}refresh(){const h=document.querySelector(this.contentSelector);this.show=this.core.onWindowScrollForElementUp(h,this.mode),this.cdRef.detectChanges()}};c.ctorParameters=()=>[{type:d.u},{type:a.SBq},{type:a.sBO}],c.propDecorators={backgroundColor:[{type:a.IIB}],symbolColor:[{type:a.IIB}],size:[{type:a.IIB}],tooltip:[{type:a.IIB}],contentSelector:[{type:a.IIB}],symbol:[{type:a.IIB}],position:[{type:a.IIB}],theme:[{type:a.IIB}],mode:[{type:a.IIB}],onWindowScroll:[{type:a.L6J,args:["window:scroll",["$event"]]}]},c=(0,o.__decorate)([(0,a.wA2)({selector:"scrolltop",template:n,styles:[l]}),(0,o.__metadata)("design:paramtypes",[d.u,a.SBq,a.sBO])],c)},40615:(O,v,e)=>{"use strict";e.d(v,{u:()=>a});var o=e(64762),n=e(11048),l=e(89724);let a=class{constructor(u){this.document=u,this.scrolledFromTop=!1,this.isBrowser="undefined"!=typeof window}onWindowScrollUp(u){return this.onWindowScrollForElementUp(this.document.documentElement,u)}onWindowScrollForElementUp(u,c){let t=!1;switch(c){case"classic":t=this.classicModeUp(u.scrollTop);break;case"smart":t=this.smartModeUp(u.scrollTop)}return t}classicModeUp(u){let c=!1;return this.isBrowser&&u>window.innerHeight&&(c=!0),c}smartModeUp(u){let c=!1;return 0===u&&(c=!1,this.scrolledFromTop=!1),this.scrolledFromTop&&this.scrollOffset>u&&(c=!0),this.isBrowser&&u>2*window.innerHeight&&(this.scrolledFromTop=!0,this.scrollOffset=u),c}onWindowScrollDown(u){return this.onWindowScrollForElementUp(this.document.documentElement,u)}onWindowScrollForElementDown(u,c){let t=!1;switch(c){case"classic":t=this.classicModeDown(u.scrollTop,u.scrollHeight);break;case"smart":t=this.smartModeDown(u.scrollTop,u.scrollHeight)}return t}classicModeDown(u,c){let t=!1;return this.isBrowser&&u<c-2*window.innerHeight&&(t=!0),t}smartModeDown(u,c){let t=!1;return 0===u&&(t=!1,this.scrolledFromTop=!1),this.scrolledFromTop&&this.scrollOffset<u&&(t=!0),this.isBrowser&&u<2*window.innerHeight&&(this.scrolledFromTop=!0,this.scrollOffset=u),t}scrollToElement(u){const c=document.getElementById(u);c&&setTimeout(()=>{c.scrollIntoView({behavior:"smooth"})},250)}};
1a.ctorParameters=()=>[{type:void 0,decorators:[{type:l.tBr,args:[n.K0]}]}],a=(0,o.__decorate)([(0,l.GSi)(),(0,o.__metadata)("design:paramtypes",[Object])],a)},34593:(O,v,e)=>{"use strict";e.d(v,{P:()=>c});var o=e(64762),n=e(89724),l=e(66903),a=e(83438);let d=class{constructor(){this.patientenverfuegung={path:"/assets/lottie/patientenverfuegung.json"},this.styles={height:"auto"},this.onFileAdded=new n.vpe,this.onFileUploadStarted=new n.vpe,this.onFileUploadCompleted=new n.vpe}ngOnInit(){const h=e(79684),i=e(61137);i.strings.browse="hier",i.strings.dropPasteBoth="Ziehen Sie Ihre Datei auf diese Fl\xe4che oder klicken Sie %{browse} um eine Datei auszuw\xe4hlen.",i.strings.dropPasteFiles="Ziehen Sie Ihre Datei auf diese Fl\xe4che oder klicken Sie %{browse} um eine Datei auszuw\xe4hlen.",i.strings.dropPasteFolders="Ziehen Sie Ihre Datei auf diese Fl\xe4che oder klicken Sie %{browse} um eine Datei auszuw\xe4hlen.";var r=new h({autoProceed:this.config.options.autoProceed,restrictions:this.config.restrictions,debug:this.config.options.debug,locale:i});
1this.uppyInstance=r;const f=e(62924);if(r.use(f,{target:".drag-drop-area",id:this.config.options.id,theme:this.config.uploaderLook.theme,note:this.config.uploaderLook.note,height:this.config.uploaderLook.height,width:this.config.uploaderLook.width,thumbnailWidth:this.config.uploaderLook.thumbnailWidth,inline:!0,showProgressDetails:this.config.statusBarOptions.showProgressDetails,browserBackButtonClose:this.config.options.browserBackButtonClose,hideUploadButton:this.config.statusBarOptions.hideUploadButton,hideRetryButton:this.config.statusBarOptions.hideRetryButton,hidePauseResumeButton:this.config.statusBarOptions.hidePauseResumeButton,hideCancelButton:this.config.statusBarOptions.hideCancelButton,hideAfterFinish:this.config.statusBarOptions.hideAfterFinish,hideProgressAfterFinish:this.config.statusBarOptions.hideProgressAfterFinish,proudlyDisplayPoweredByUppy:this.config.uploaderLook.proudlyDisplayPoweredByUppy,allowMultipleUploads:this.config.options.allowMultipleUploads}),void 0!==this.config.XHRUploadOptions){const w=e(27092);r.use(w,{endpoint:this.config.XHRUploadOptions.endpoint,headers:this.config.XHRUploadOptions.headers})}if(null!=this.config.firebaseCloudStorageOptions){const w=e(30),U=this.config.firebaseCloudStorageOptions.storageRef;r.use(w,{storageRef:U})}let g=this.config.plugins.companionUrl||"https://companion.uppy.io",A=null;if(this.config.plugins.Transloadit){const w=e(93011);r.use(w,{service:"https://api2-eu-west-1.transloadit.com/",params:{auth:{key:"19c85e712f07416680fc9002439b062d"},steps:{":original":{robot:"/upload/handle"}}},waitForEncoding:!0}),g=w.COMPANION,A=w.COMPANION_PATTERN}if(this.config.plugins.Webcam){const w=e(39989);r.use(w,{target:f})}if(this.config.plugins.ScreenCapture){const w=e(19811);r.use(w,{target:f})}if(this.config.plugins.GoogleDrive){const w=e(25617);r.use(w,{target:f,companionUrl:g,companionAllowedHosts:A})}if(this.config.plugins.OneDrive){const w=e(20080);r.use(w,{target:f,companionUrl:g})}if(this.config.plugins.Dropbox){const w=e(38143);r.use(w,{target:f,companionUrl:g})}if(this.config.plugins.Box){const w=e(51957);r.use(w,{target:f,companionUrl:g})}if(this.config.plugins.Instagram){const w=e(79158);r.use(w,{target:f,companionUrl:g})}if(this.config.plugins.Facebook){const w=e(79103);r.use(w,{target:f,companionUrl:g})}r.on("file-added",w=>{this.config.options.meta&&r.setFileMeta(w.id,this.config.options.meta),this.onFileAdded.emit(w)}),r.on("upload",w=>{this.onFileUploadStarted.emit(w)}),r.on("complete",w=>{this.onFileUploadCompleted.emit(w)})}};d.ctorParameters=()=>[],d.propDecorators={config:[{type:n.IIB}],onFileAdded:[{type:n.r_U}],onFileUploadStarted:[{type:n.r_U}],onFileUploadCompleted:[{type:n.r_U}]},d=(0,o.__decorate)([(0,n.wA2)({selector:"ng-uppy",template:l,styles:[a]}),(0,o.__metadata)("design:paramtypes",[])],d);var u=e(27511);let c=class{};c=(0,o.__decorate)([(0,n.LVF)({declarations:[d],imports:[u.CT],exports:[d]})],c)},30:(O,v,e)=>{const{Plugin:o}=e(79684);O.exports=class extends o{constructor(l,a){if(super(l,a),!a.storageRef)throw Error("Please provide the root storageRef to be used as option `storageRef`. See https://firebase.google.com/docs/storage/web/upload-files");this.type="uploader",this.id="FirebaseCloudStorage",this.title="Firebase Cloud Storage",this.storageRef=a.storageRef,this.uploadFile=this.uploadFile.bind(this)}uploadFile(l){return Promise.all(l.map(a=>new Promise((d,u)=>{const c=this.uppy.getFile(a),t=this.storageRef,h={contentType:c.type};this.uppy.emit("upload-started",c);const i=t.put(c.data,h);i.on("state_changed",s=>{const r={uploader:this,bytesUploaded:s.bytesTransferred,bytesTotal:s.totalBytes};this.uppy.emit("upload-progress",c,r)},s=>{this.uppy.emit("upload-error",c,s),u(s)},()=>{i.snapshot.ref.getDownloadURL().then(s=>{const r=this.uppy.getFile(a);r.downloadUrl=s,this.uppy.emit("upload-success",r,i.snapshot,s),d()})})})))}install(){this.uppy.addUploader(this.uploadFile)}uninstall(){this.uppy.removeUploader(this.uploadFile)}}},83726:O=>{O.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var o=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(o&&(e=-e),e<1)return(o?"-":"")+e+" B";var l=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,l));var a=n[l];return e>=10||e%1==0?(o?"-":"")+e.toFixed(0)+" "+a:(o?"-":"")+e.toFixed(1)+" "+a}},51957:(O,v,e)=>{var o,n;function l(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}
1function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,h=e(95290).Provider,s=e(47214).ProviderViews,f=e(79606).h;O.exports=(n=o=function(g){function A(U,F){var y;return(y=g.call(this,U,F)||this).id=y.opts.id||"Box",h.initPlugin(l(y),F),y.title=y.opts.title||"Box",y.icon=function(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},f("g",{fill:"none",fillRule:"evenodd"},f("rect",{className:"uppy-ProviderIconBg",fill:"#0061D5",width:"32",height:"32",rx:"16"}),f("g",{fill:"#fff",fillRule:"nonzero"},f("path",{d:"m16.4 13.5c-1.6 0-3 0.9-3.7 2.2-0.7-1.3-2.1-2.2-3.7-2.2-1 0-1.8 0.3-2.5 0.8v-3.6c-0.1-0.3-0.5-0.7-1-0.7s-0.8 0.4-0.8 0.8v7c0 2.3 1.9 4.2 4.2 4.2 1.6 0 3-0.9 3.7-2.2 0.7 1.3 2.1 2.2 3.7 2.2 2.3 0 4.2-1.9 4.2-4.2 0.1-2.4-1.8-4.3-4.1-4.3m-7.5 6.8c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5m7.5 0c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5"}),f("path",{d:"m27.2 20.6l-2.3-2.8 2.3-2.8c0.3-0.4 0.2-0.9-0.2-1.2s-1-0.2-1.3 0.2l-2 2.4-2-2.4c-0.3-0.4-0.9-0.4-1.3-0.2-0.4 0.3-0.5 0.8-0.2 1.2l2.3 2.8-2.3 2.8c-0.3 0.4-0.2 0.9 0.2 1.2s1 0.2 1.3-0.2l2-2.4 2 2.4c0.3 0.4 0.9 0.4 1.3 0.2 0.4-0.3 0.4-0.8 0.2-1.2"}))))},y.provider=new h(U,{companionUrl:y.opts.companionUrl,companionHeaders:y.opts.companionHeaders||y.opts.serverHeaders,companionKeysParams:y.opts.companionKeysParams,companionCookiesRule:y.opts.companionCookiesRule,provider:"box",pluginId:y.id}),y.onFirstRender=y.onFirstRender.bind(l(y)),y.render=y.render.bind(l(y)),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.install=function(){this.view=new s(this,{provider:this.provider});var F=this.opts.target;F&&this.mount(F,this)},w.uninstall=function(){this.view.tearDown(),this.unmount()},w.onFirstRender=function(){return this.view.getFolder()},w.render=function(F){return this.view.render(F)},A}(c),o.VERSION="0.3.12",n)},87356:O=>{"use strict";function e(c){var t="function"==typeof Map?new Map:void 0;return e=function(i){if(null===i||!function(c){return-1!==Function.toString.call(c).indexOf("[native code]")}(i))return i;if("function"!=typeof i)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(i))return t.get(i);t.set(i,s)}function s(){return o(i,arguments,d(this).constructor)}return s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a(s,i)},e(c)}function o(c,t,h){return(o=n()?Reflect.construct:function(s,r,f){var g=[null];g.push.apply(g,r);var w=new(Function.bind.apply(s,g));return f&&a(w,f.prototype),w}).apply(null,arguments)}function n(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}function a(c,t){return(a=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i})(c,t)}function d(c){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(c)}var u=function(c){function t(){var h;return(h=c.call(this,"Authorization required")||this).name="AuthError",h.isAuthError=!0,h}return function(c,t){c.prototype=Object.create(t.prototype),c.prototype.constructor=c,a(c,t)}(t,c),t}(e(Error));O.exports=u},26598:(O,v,e)=>{"use strict";function o(){return o=Object.assign||function(h){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(h[r]=s[r])}return h},o.apply(this,arguments)}function l(h,i){return(l=Object.setPrototypeOf||function(r,f){return r.__proto__=f,r})(h,i)}var a=e(4522),d=e(2135),u=e(37378),c=e(32048);O.exports=function(h){function i(r,f){var g;return(g=h.call(this,r,f)||this).provider=f.provider,g.id=g.provider,g.name=g.opts.name||function(i){return i.split("-").map(function(s){return s.charAt(0).toUpperCase()+s.slice(1)}).join(" ")}(g.id),g.pluginId=g.opts.pluginId,g.tokenKey="companion-"+g.pluginId+"-auth-token",g.companionKeysParams=g.opts.companionKeysParams,g.preAuthToken=null,g}!function(h,i){h.prototype=Object.create(i.prototype),h.prototype.constructor=h,l(h,i)}(i,h);var s=i.prototype;return s.headers=function(){var f=this;return Promise.all([h.prototype.headers.call(this),this.getAuthToken()]).then(function(g){var A=g[0],w=g[1],U={};return w&&(U["uppy-auth-token"]=w),f.companionKeysParams&&(U["uppy-credentials-params"]=btoa(JSON.stringify({params:f.companionKeysParams}))),o({},A,U)})},s.onReceiveResponse=function(f){f=h.prototype.onReceiveResponse.call(this,f);var g=this.uppy.getPlugin(this.pluginId),w=g.getPluginState().authenticated?401!==f.status:f.status<400;return g.setPluginState({authenticated:w}),f}
1,s.setAuthToken=function(f){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,f)},s.getAuthToken=function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)},s.authUrl=function(f){void 0===f&&(f={}),this.preAuthToken&&(f.uppyPreAuthToken=this.preAuthToken);var g=a(f);return g=g&&"?"+g,this.hostname+"/"+this.id+"/connect"+g},s.fileUrl=function(f){return this.hostname+"/"+this.id+"/get/"+f},s.fetchPreAuthToken=function(){var f=this;return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(function(g){f.preAuthToken=g.token}).catch(function(g){f.uppy.log("[CompanionClient] unable to fetch preAuthToken "+g,"warning")}):Promise.resolve()},s.list=function(f){return this.get(this.id+"/list/"+(f||""))},s.logout=function(){var f=this;return this.get(this.id+"/logout").then(function(g){return Promise.all([g,f.uppy.getPlugin(f.pluginId).storage.removeItem(f.tokenKey)])}).then(function(g){return g[0]})},i.initPlugin=function(f,g,A){if(f.type="acquirer",f.files=[],A&&(f.opts=o({},A,g)),g.serverUrl||g.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(g.companionAllowedHosts){var w=g.companionAllowedHosts;if(!("string"==typeof w||Array.isArray(w)||w instanceof RegExp))throw new TypeError(f.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');f.opts.companionAllowedHosts=w}else/^(?!https?:\/\/).*$/i.test(g.companionUrl)?f.opts.companionAllowedHosts="https://"+g.companionUrl.replace(/^\/\//,""):f.opts.companionAllowedHosts=new d(g.companionUrl).origin;f.storage=f.opts.storage||c},i}(u)},37378:(O,v,e)=>{"use strict";var o,n;function l(){return l=Object.assign||function(h){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(h[r]=s[r])}return h},l.apply(this,arguments)}function a(h,i){for(var s=0;s<i.length;s++){var r=i[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}var u=e(87356),c=e(29670);O.exports=(n=o=function(){function h(s,r){this.uppy=s,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}var i=h.prototype;return i.headers=function(){var r=this.opts.companionHeaders||this.opts.serverHeaders||{};return Promise.resolve(l({},this.defaultHeaders,r))},i._getPostResponseFunc=function(r){var f=this;return function(g){return r?g:f.onReceiveResponse(g)}},i.onReceiveResponse=function(r){var U,g=this.uppy.getState().companion||{},A=this.opts.companionUrl,w=r.headers;w.has("i-am")&&w.get("i-am")!==g[A]&&this.uppy.setState({companion:l({},g,(U={},U[A]=w.get("i-am"),U))});return r},i._getUrl=function(r){return/^(https?:|)\/\//.test(r)?r:this.hostname+"/"+r},i._json=function(r){if(401===r.status)throw new u;if(r.status<200||r.status>300){var f="Failed request with status: "+r.status+". "+r.statusText;return r.json().then(function(g){throw f=g.message?f+" message: "+g.message:f,f=g.requestId?f+" request-Id: "+g.requestId:f,new Error(f)}).catch(function(){throw new Error(f)})}return r.json()},i.preflight=function(r){var f=this;return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(this._getUrl(r),{method:"OPTIONS"}).then(function(g){return g.headers.has("access-control-allow-headers")&&(f.allowedHeaders=g.headers.get("access-control-allow-headers").split(",").map(function(A){return A.trim().toLowerCase()})),f.preflightDone=!0,f.allowedHeaders.slice()}).catch(function(g){return f.uppy.log("[CompanionClient] unable to make preflight request "+g,"warning"),f.preflightDone=!0,f.allowedHeaders.slice()})},i.preflightAndHeaders=function(r){var f=this;return Promise.all([this.preflight(r),this.headers()]).then(function(g){var A=g[0],w=g[1];
1return Object.keys(w).forEach(function(U){-1===A.indexOf(U.toLowerCase())&&(f.uppy.log("[CompanionClient] excluding unallowed header "+U),delete w[U])}),w})},i.get=function(r,f){var g=this;return this.preflightAndHeaders(r).then(function(A){return c(g._getUrl(r),{method:"get",headers:A,credentials:g.opts.companionCookiesRule||"same-origin"})}).then(this._getPostResponseFunc(f)).then(function(A){return g._json(A)}).catch(function(A){return A.isAuthError||(A.message="Could not get "+g._getUrl(r)+". "+A.message),Promise.reject(A)})},i.post=function(r,f,g){var A=this;return this.preflightAndHeaders(r).then(function(w){return c(A._getUrl(r),{method:"post",headers:w,credentials:A.opts.companionCookiesRule||"same-origin",body:JSON.stringify(f)})}).then(this._getPostResponseFunc(g)).then(function(w){return A._json(w)}).catch(function(w){return w.isAuthError||(w.message="Could not post "+A._getUrl(r)+". "+w.message),Promise.reject(w)})},i.delete=function(r,f,g){var A=this;return this.preflightAndHeaders(r).then(function(w){return c(A.hostname+"/"+r,{method:"delete",headers:w,credentials:A.opts.companionCookiesRule||"same-origin",body:f?JSON.stringify(f):null})}).then(this._getPostResponseFunc(g)).then(function(w){return A._json(w)}).catch(function(w){return w.isAuthError||(w.message="Could not delete "+A._getUrl(r)+". "+w.message),Promise.reject(w)})},function(h,i,s){i&&a(h.prototype,i),s&&a(h,s)}(h,[{key:"hostname",get:function(){var f=this.uppy.getState().companion,g=this.opts.companionUrl;return function(h){return h.replace(/\/$/,"")}(f&&f[g]?f[g]:g)}},{key:"defaultHeaders",get:function(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+h.VERSION}}}]),h}(),o.VERSION="1.10.2",n)},92192:(O,v,e)=>{"use strict";function n(d,u){return(n=Object.setPrototypeOf||function(t,h){return t.__proto__=h,t})(d,u)}var l=e(37378);O.exports=function(d){function u(t,h){var i;return(i=d.call(this,t,h)||this).provider=h.provider,i.id=i.provider,i.name=i.opts.name||function(u){return u.split("-").map(function(c){return c.charAt(0).toUpperCase()+c.slice(1)}).join(" ")}(i.id),i.pluginId=i.opts.pluginId,i}!function(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,n(d,u)}(u,d);var c=u.prototype;return c.fileUrl=function(h){return this.hostname+"/search/"+this.id+"/get/"+h},c.search=function(h,i){return i=i?"&"+i:"",this.get("search/"+this.id+"/list?q="+encodeURIComponent(h)+i)},u}(l)},24796:(O,v,e)=>{var o=e(77461);O.exports=function(){function n(a){this.opts=a,this._queued=[],this.isOpen=!1,this.emitter=o(),this._handleMessage=this._handleMessage.bind(this),this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this),(!a||!1!==a.autoOpen)&&this.open()}var l=n.prototype;return l.open=function(){var d=this;this.socket=new WebSocket(this.opts.target),this.socket.onopen=function(u){for(d.isOpen=!0;d._queued.length>0&&d.isOpen;){var c=d._queued[0];d.send(c.action,c.payload),d._queued=d._queued.slice(1)}},this.socket.onclose=function(u){d.isOpen=!1},this.socket.onmessage=this._handleMessage},l.close=function(){this.socket&&this.socket.close()},l.send=function(d,u){this.isOpen?this.socket.send(JSON.stringify({action:d,payload:u})):this._queued.push({action:d,payload:u})},l.on=function(d,u){this.emitter.on(d,u)},l.emit=function(d,u){this.emitter.emit(d,u)},l.once=function(d,u){this.emitter.once(d,u)},l._handleMessage=function(d){try{var u=JSON.parse(d.data);this.emit(u.action,u.payload)}catch(c){console.log(c)}},n}()},95290:(O,v,e)=>{"use strict";var o=e(37378),n=e(26598),l=e(92192),a=e(24796);O.exports={RequestClient:o,Provider:n,SearchProvider:l,Socket:a}},32048:O=>{"use strict";O.exports.setItem=function(v,e){return new Promise(function(o){localStorage.setItem(v,e),o()})},O.exports.getItem=function(v){return Promise.resolve(localStorage.getItem(v))},O.exports.removeItem=function(v){return new Promise(function(e){localStorage.removeItem(v),e()})}},75109:(O,v,e)=>{function o(){return o=Object.assign||function(d){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var t in c)Object.prototype.hasOwnProperty.call(c,t)&&(d[t]=c[t])}return d},o.apply(this,arguments)}var n=e(79606),l=e(90827);
1O.exports=function(){function d(c,t){this.uppy=c,this.opts=t||{},this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.install=this.install.bind(this),this.uninstall=this.uninstall.bind(this)}var u=d.prototype;return u.getPluginState=function(){return this.uppy.getState().plugins[this.id]||{}},u.setPluginState=function(t){var h,s=this.uppy.getState().plugins;this.uppy.setState({plugins:o({},s,(h={},h[this.id]=o({},s[this.id],t),h))})},u.setOptions=function(t){this.opts=o({},this.opts,t),this.setPluginState()},u.update=function(t){void 0!==this.el&&this._updateUI&&this._updateUI(t)},u.afterUpdate=function(){},u.onMount=function(){},u.mount=function(t,h){var f,i=this,s=h.id,r=l(t);if(r)return this.isTargetDOMEl=!0,this.rerender=function(w){!i.uppy.getPlugin(i.id)||(i.el=n.render(i.render(w),r,i.el),i.afterUpdate())},this._updateUI=function(d){var u=null,c=null;return function(){for(var t=arguments.length,h=new Array(t),i=0;i<t;i++)h[i]=arguments[i];return c=h,u||(u=Promise.resolve().then(function(){return u=null,d.apply(void 0,c)})),u}}(this.rerender),this.uppy.log("Installing "+s+" to a DOM element '"+t+"'"),this.opts.replaceTargetContent&&(r.innerHTML=""),this.el=n.render(this.render(this.uppy.getState()),r),this.onMount(),this.el;if("object"==typeof t&&t instanceof d)f=t;else if("function"==typeof t){var g=t;this.uppy.iteratePlugins(function(w){if(w instanceof g)return f=w,!1})}
1if(f)return this.uppy.log("Installing "+s+" to "+f.id),this.parent=f,this.el=f.addTarget(h),this.onMount(),this.el;this.uppy.log("Not installing "+s);var A="Invalid target option given to "+s+".";throw A+="function"==typeof t?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(A)},u.render=function(t){throw new Error("Extend the render method to add your plugin to a DOM element")},u.addTarget=function(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},u.unmount=function(){this.isTargetDOMEl&&this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.install=function(){},u.uninstall=function(){this.unmount()},d}()},79684:(O,v,e)=>{function o(){return o=Object.assign||function(C){for(var D=1;D<arguments.length;D++){var I=arguments[D];for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&(C[P]=I[P])}return C},o.apply(this,arguments)}function n(C,D){for(var I=0;I<D.length;I++){var P=D[I];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}function a(C,D){C.prototype=Object.create(D.prototype),C.prototype.constructor=C,h(C,D)}function d(C){var D="function"==typeof Map?new Map:void 0;return d=function(P){if(null===P||!function(C){return-1!==Function.toString.call(C).indexOf("[native code]")}(P))return P;if("function"!=typeof P)throw new TypeError("Super expression must either be null or a function");if(void 0!==D){if(D.has(P))return D.get(P);D.set(P,B)}function B(){return u(P,arguments,i(this).constructor)}return B.prototype=Object.create(P.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),h(B,P)},d(C)}function u(C,D,I){return(u=c()?Reflect.construct:function(B,p,Y){var j=[null];j.push.apply(j,p);var ne=new(Function.bind.apply(B,j));return Y&&h(ne,Y.prototype),ne}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}function h(C,D){return(h=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(C,D)}function i(C){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)})(C)}var s=e(30831),r=e(77461),f=e(75816),g=e(6123),A=e(83726),w=e(57942),U=e(15174),F=e(13417),y=e(41941),S=e(30784),x=e(95252),L=e(73823),H=e(95276),K=H.justErrorsLogger,N=H.debugLogger,R=e(75109),_=function(C){function D(){for(var I,P=arguments.length,B=new Array(P),p=0;p<P;p++)B[p]=arguments[p];return(I=C.call.apply(C,[this].concat(B))||this).isRestriction=!0,I}return a(D,C),D}(d(Error));"undefined"==typeof AggregateError&&(AggregateError=function(C){function D(I,P){var B;return(B=C.call(this,I)||this).errors=P,B}return a(D,C),D}(d(Error)));var m=function(C){function D(){for(var I,P=arguments.length,B=new Array(P),p=0;p<P;p++)B[p]=arguments[p];return(I=C.call.apply(C,[this].concat(B))||this).isRestriction=!0,I}return a(D,C),D}(AggregateError),b=function(){function C(I){var P=this;this.defaultLocale={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",exceedsSize2:"%{backwardsCompat} %{size}",exceedsSize:"%{file} exceeds maximum allowed size of",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noNewAlreadyUploading:"Cannot add new files: already uploading",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},selectAllFilesFromFolderNamed:"Select all files from folder %{name}",unselectAllFilesFromFolderNamed:"Unselect all files from folder %{name}",selectFileNamed:"Select file %{name}",unselectFileNamed:"Unselect file %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var B={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:function(Y){return Y},onBeforeUpload:function(Y){return Y},store:U(),logger:K,infoTimeout:5e3};if(this.opts=o({},B,I,{restrictions:o({},B.restrictions,I&&I.restrictions)}),I&&I.logger&&I.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):I&&I.debug&&(this.opts.logger=N),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.plugins={}
1,this.getState=this.getState.bind(this),this.getPlugin=this.getPlugin.bind(this),this.setFileMeta=this.setFileMeta.bind(this),this.setFileState=this.setFileState.bind(this),this.log=this.log.bind(this),this.info=this.info.bind(this),this.hideInfo=this.hideInfo.bind(this),this.addFile=this.addFile.bind(this),this.removeFile=this.removeFile.bind(this),this.pauseResume=this.pauseResume.bind(this),this.validateRestrictions=this.validateRestrictions.bind(this),this.calculateProgress=g(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.updateOnlineStatus=this.updateOnlineStatus.bind(this),this.resetProgress=this.resetProgress.bind(this),this.pauseAll=this.pauseAll.bind(this),this.resumeAll=this.resumeAll.bind(this),this.retryAll=this.retryAll.bind(this),this.cancelAll=this.cancelAll.bind(this),this.retryUpload=this.retryUpload.bind(this),this.upload=this.upload.bind(this),this.emitter=r(),this.on=this.on.bind(this),this.off=this.off.bind(this),this.once=this.emitter.once.bind(this.emitter),this.emit=this.emitter.emit.bind(this.emitter),this.preProcessors=[],this.uploaders=[],this.postProcessors=[],this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:L(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:o({},this.opts.meta),info:{isHidden:!0,type:"info",message:""},recoveredState:null}),this.storeUnsubscribe=this.store.subscribe(function(p,Y,j){P.emit("state-update",p,Y,j),P.updateAll(Y)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),this.addListeners()}var D=C.prototype;return D.on=function(P,B){return this.emitter.on(P,B),this},D.off=function(P,B){return this.emitter.off(P,B),this},D.updateAll=function(P){this.iteratePlugins(function(B){B.update(P)})},D.setState=function(P){this.store.setState(P)},D.getState=function(){return this.store.getState()},D.setFileState=function(P,B){var p;if(!this.getState().files[P])throw new Error("Can\u2019t set state for "+P+" (the file could have been removed)");this.setState({files:o({},this.getState().files,(p={},p[P]=o({},this.getState().files[P],B),p))})},D.i18nInit=function(){this.translator=new s([this.defaultLocale,this.opts.locale]),this.locale=this.translator.locale,this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator)},D.setOptions=function(P){this.opts=o({},this.opts,P,{restrictions:o({},this.opts.restrictions,P&&P.restrictions)}),P.meta&&this.setMeta(P.meta),this.i18nInit(),P.locale&&this.iteratePlugins(function(B){B.setOptions()}),this.setState()},D.resetProgress=function(){var P={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},B=o({},this.getState().files),p={};Object.keys(B).forEach(function(Y){var j=o({},B[Y]);j.progress=o({},j.progress,P),p[Y]=j}),this.setState({files:p,totalProgress:0}),this.emit("reset-progress")},D.addPreProcessor=function(P){this.preProcessors.push(P)},D.removePreProcessor=function(P){var B=this.preProcessors.indexOf(P);-1!==B&&this.preProcessors.splice(B,1)},D.addPostProcessor=function(P){this.postProcessors.push(P)},D.removePostProcessor=function(P){var B=this.postProcessors.indexOf(P);-1!==B&&this.postProcessors.splice(B,1)},D.addUploader=function(P){this.uploaders.push(P)},D.removeUploader=function(P){var B=this.uploaders.indexOf(P);-1!==B&&this.uploaders.splice(B,1)},D.setMeta=function(P){var B=o({},this.getState().meta,P),p=o({},this.getState().files);Object.keys(p).forEach(function(Y){p[Y]=o({},p[Y],{meta:o({},p[Y].meta,P)})}),this.log("Adding metadata:"),this.log(P),this.setState({meta:B,files:p})},D.setFileMeta=function(P,B){var p=o({},this.getState().files);if(p[P]){var Y=o({},p[P].meta,B);p[P]=o({},p[P],{meta:Y}),this.setState({files:p})}else this.log("Was trying to set metadata for a file that has been removed: ",P)},D.getFile=function(P){return this.getState().files[P]},D.getFiles=function(){var B=this.getState().files;return Object.keys(B).map(function(p){return B[p]})},D.validateRestrictions=function(P,B){try{return this.checkRestrictions(P,B),{result:!0}}catch(p){return{result:!1,reason:p.message}}},D.checkRestrictions=function(P,B){void 0===B&&(B=this.getFiles());var p=this.opts.restrictions,Y=p.maxFileSize,j=p.minFileSize,ee=p.maxTotalFileSize,ne=p.maxNumberOfFiles,se=p.allowedFileTypes;if(ne&&B.length+1>ne)throw new _(""+this.i18n("youCanOnlyUploadX",{smart_count:ne}));if(se&&!se.some(function(z){return z.indexOf("/")>-1?!!P.type&&w(P.type.replace(/;.*?$/,""),z):!("."!==z[0]||!P.extension)&&P.extension.toLowerCase()===z.substr(1).toLowerCase()})){var he=se.join(", ");throw new _(this.i18n("youCanOnlyUploadFileTypes",{types:he}))}if(ee&&null!=P.size){var ve=0;if(ve+=P.size,B.forEach(function(z){ve+=z.size}),ve>ee)throw new _(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:A(ee),file:P.name}))}if(Y&&null!=P.size&&P.size>Y)throw new _(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:A(Y),file:P.name}));if(j&&null!=P.size&&P.size<j)throw new _(this.i18n("inferiorSize",{size:A(j)}))},D.checkMinNumberOfFiles=function(P){var B=this.opts.restrictions.minNumberOfFiles;if(Object.keys(P).length<B)throw new _(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:B}
1))},D.checkRequiredMetaFields=function(P){for(var B=this.opts.restrictions.requiredMetaFields,p=Object.prototype.hasOwnProperty,Y=[],j=Object.keys(P),ee=0;ee<j.length;ee++)for(var ne=this.getFile(j[ee]),se=0;se<B.length;se++)if(!p.call(ne.meta,B[se])||""===ne.meta[B[se]]){var le=new _(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:ne.name}));Y.push(le),this.showOrLogErrorAndThrow(le,{file:ne,throwErr:!1})}if(Y.length)throw new m(""+this.i18n("missingRequiredMetaField"),Y)},D.showOrLogErrorAndThrow=function(P,B){var p=void 0===B?{}:B,Y=p.showInformer,j=void 0===Y||Y,ee=p.file,ne=void 0===ee?null:ee,se=p.throwErr,le=void 0===se||se,he="object"==typeof P?P.message:P,ve="object"==typeof P&&P.details?P.details:"",z=he;if(ve&&(z+=" "+ve),P.isRestriction?(this.log(z),this.emit("restriction-failed",ne,P)):this.log(z,"error"),j&&this.info({message:he,details:ve},"error",this.opts.infoTimeout),le)throw"object"==typeof P?P:new Error(P)},D.assertNewUploadAllowed=function(P){!1===this.getState().allowNewUpload&&this.showOrLogErrorAndThrow(new _(this.i18n("noNewAlreadyUploading")),{file:P})},D.checkAndCreateFileStateObject=function(P,B){var p=F(B),Y=B;Y.type=p;var ee,j=this.opts.onBeforeFileAdded(Y,P);!1===j&&this.showOrLogErrorAndThrow(new _("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,file:Y}),"object"==typeof j&&j&&(Y=j),ee=Y.name?Y.name:"image"===p.split("/")[0]?p.split("/")[0]+"."+p.split("/")[1]:"noname";var ne=y(ee).extension,se=Y.isRemote||!1,le=S(Y);P[le]&&!P[le].isGhost&&this.showOrLogErrorAndThrow(new _(this.i18n("noDuplicates",{fileName:ee})),{file:Y});var he=Y.meta||{};he.name=ee,he.type=p;var ve=isFinite(Y.data.size)?Y.data.size:null,z={source:Y.source||"",id:le,name:ee,extension:ne||"",meta:o({},this.getState().meta,he),type:p,data:Y.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:ve,uploadComplete:!1,uploadStarted:null},size:ve,isRemote:se,remote:Y.remote||"",preview:Y.preview};try{var te=Object.keys(P).map(function(me){return P[me]});this.checkRestrictions(z,te)}catch(me){this.showOrLogErrorAndThrow(me,{file:z})}return z},D.startIfAutoProceed=function(){var P=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){P.scheduledAutoProceed=null,P.upload().catch(function(B){B.isRestriction||P.log(B.stack||B.message||B)})},4))},D.addFile=function(P){var B;this.assertNewUploadAllowed(P);var Y=this.getState().files,j=this.checkAndCreateFileStateObject(Y,P);return Y[j.id]&&Y[j.id].isGhost&&(j=o({},Y[j.id],{data:P.data,isGhost:!1}),this.log("Replaced the blob in the restored ghost file: "+j.name+", "+j.id)),this.setState({files:o({},Y,(B={},B[j.id]=j,B))}),this.emit("file-added",j),this.emit("files-added",[j]),this.log("Added file: "+j.name+", "+j.id+", mime type: "+j.type),this.startIfAutoProceed(),j.id},D.addFiles=function(P){var B=this;this.assertNewUploadAllowed();for(var p=o({},this.getState().files),Y=[],j=[],ee=0;ee<P.length;ee++)try{var ne=this.checkAndCreateFileStateObject(p,P[ee]);p[ne.id]&&p[ne.id].isGhost&&(ne=o({},p[ne.id],{data:P[ee].data,isGhost:!1}),this.log("Replaced blob in a ghost file: "+ne.name+", "+ne.id)),p[ne.id]=ne,Y.push(ne)}catch(he){he.isRestriction||j.push(he)}if(this.setState({files:p}),Y.forEach(function(he){B.emit("file-added",he)}),this.emit("files-added",Y),Y.length>5?this.log("Added batch of "+Y.length+" files"):Object.keys(Y).forEach(function(he){B.log("Added file: "+Y[he].name+"\n id: "+Y[he].id+"\n type: "+Y[he].type)}),Y.length>0&&this.startIfAutoProceed(),j.length>0){var se="Multiple errors occurred while adding files:\n";if(j.forEach(function(he){se+="\n * "+he.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:j.length}),details:se},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(j,se);var le=new Error(se);throw le.errors=j,le}},D.removeFiles=function(P,B){var p=this,Y=this.getState(),j=Y.files,ee=Y.currentUploads,ne=o({},j),se=o({},ee),le=Object.create(null);function he(te){return void 0===le[te]}P.forEach(function(te){j[te]&&(le[te]=j[te],delete ne[te])}),Object.keys(se).forEach(function(te){var me=ee[te].fileIDs.filter(he);0!==me.length?se[te]=o({},ee[te],{fileIDs:me}):delete se[te]});var ve={currentUploads:se,files:ne};0===Object.keys(ne).length&&(ve.allowNewUpload=!0,ve.error=null,ve.recoveredState=null),this.setState(ve),this.calculateTotalProgress();var z=Object.keys(le);z.forEach(function(te){p.emit("file-removed",le[te],B)}),z.length>5?this.log("Removed "+z.length+" files"):this.log("Removed files: "+z.join(", "))},D.removeFile=function(P,B){void 0===B&&(B=null),this.removeFiles([P],B)},D.pauseResume=function(P){if(this.getState().capabilities.resumableUploads&&!this.getFile(P).uploadComplete){var p=!(this.getFile(P).isPaused||!1);return this.setFileState(P,{isPaused:p}
1),this.emit("upload-pause",P,p),p}},D.pauseAll=function(){var P=o({},this.getState().files);Object.keys(P).filter(function(p){return!P[p].progress.uploadComplete&&P[p].progress.uploadStarted}).forEach(function(p){var Y=o({},P[p],{isPaused:!0});P[p]=Y}),this.setState({files:P}),this.emit("pause-all")},D.resumeAll=function(){var P=o({},this.getState().files);Object.keys(P).filter(function(p){return!P[p].progress.uploadComplete&&P[p].progress.uploadStarted}).forEach(function(p){var Y=o({},P[p],{isPaused:!1,error:null});P[p]=Y}),this.setState({files:P}),this.emit("resume-all")},D.retryAll=function(){var P=o({},this.getState().files),B=Object.keys(P).filter(function(Y){return P[Y].error});if(B.forEach(function(Y){var j=o({},P[Y],{isPaused:!1,error:null});P[Y]=j}),this.setState({files:P,error:null}),this.emit("retry-all",B),0===B.length)return Promise.resolve({successful:[],failed:[]});var p=this.createUpload(B,{forceAllowNewUpload:!0});return this.runUpload(p)},D.cancelAll=function(){this.emit("cancel-all");var B=this.getState().files,p=Object.keys(B);p.length&&this.removeFiles(p,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})},D.retryUpload=function(P){this.setFileState(P,{error:null,isPaused:!1}),this.emit("upload-retry",P);var B=this.createUpload([P],{forceAllowNewUpload:!0});return this.runUpload(B)},D.reset=function(){this.cancelAll()},D.logout=function(){this.iteratePlugins(function(P){P.provider&&P.provider.logout&&P.provider.logout()})},D.calculateProgress=function(P,B){if(this.getFile(P.id)){var p=isFinite(B.bytesTotal)&&B.bytesTotal>0;this.setFileState(P.id,{progress:o({},this.getFile(P.id).progress,{bytesUploaded:B.bytesUploaded,bytesTotal:B.bytesTotal,percentage:p?Math.round(B.bytesUploaded/B.bytesTotal*100):0})}),this.calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: "+P.id)},D.calculateTotalProgress=function(){var B=this.getFiles().filter(function(z){return z.progress.uploadStarted||z.progress.preprocess||z.progress.postprocess});if(0===B.length)return this.emit("progress",0),void this.setState({totalProgress:0});var p=B.filter(function(z){return null!=z.progress.bytesTotal}),Y=B.filter(function(z){return null==z.progress.bytesTotal});if(0!==p.length){var se=p.reduce(function(z,te){return z+te.progress.bytesTotal},0),le=se/p.length;se+=le*Y.length;var he=0;p.forEach(function(z){he+=z.progress.bytesUploaded}),Y.forEach(function(z){he+=le*(z.progress.percentage||0)/100});var ve=0===se?0:Math.round(he/se*100);ve>100&&(ve=100),this.setState({totalProgress:ve}),this.emit("progress",ve)}else{var j=100*B.length,ee=Y.reduce(function(z,te){return z+te.progress.percentage},0),ne=Math.round(ee/j*100);this.setState({totalProgress:ne})}},D.addListeners=function(){var P=this,B=function(Y,j,ee){var ne=Y.message||"Unknown error";Y.details&&(ne+=" "+Y.details),P.setState({error:ne}),null!=j&&"string"==typeof j.id&&P.setFileState(j.id,{error:ne,response:ee})};this.on("error",B),this.on("upload-error",function(p,Y,j){if(B(Y,p,j),"object"==typeof Y&&Y.message){var ee=new Error(Y.message);ee.details=Y.message,Y.details&&(ee.details+=" "+Y.details),ee.message=P.i18n("failedToUpload",{file:p.name}),P.showOrLogErrorAndThrow(ee,{throwErr:!1})}else P.showOrLogErrorAndThrow(Y,{throwErr:!1})}),this.on("upload",function(){P.setState({error:null})}),this.on("upload-started",function(p){P.getFile(p.id)?P.setFileState(p.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:p.size}}):P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",function(p,Y){if(P.getFile(p.id)){var j=P.getFile(p.id).progress;P.setFileState(p.id,{progress:o({},j,{postprocess:P.postProcessors.length>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:j.bytesTotal}),response:Y,uploadURL:Y.uploadURL,isPaused:!1}),null==p.size&&P.setFileState(p.id,{size:Y.bytesUploaded||j.bytesTotal}),P.calculateTotalProgress()}else P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("preprocess-progress",function(p,Y){P.getFile(p.id)?P.setFileState(p.id,{progress:o({},P.getFile(p.id).progress,{preprocess:Y})}):P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("preprocess-complete",function(p){if(P.getFile(p.id)){var Y=o({},P.getState().files);Y[p.id]=o({},Y[p.id],{progress:o({},Y[p.id].progress)}),delete Y[p.id].progress.preprocess,P.setState({files:Y})}else P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("postprocess-progress",function(p,Y){P.getFile(p.id)?P.setFileState(p.id,{progress:o({},P.getState().files[p.id].progress,{postprocess:Y})}):P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("postprocess-complete",function(p){if(P.getFile(p.id)){var Y=o({},P.getState().files);Y[p.id]=o({},Y[p.id],{progress:o({},Y[p.id].progress)}),delete Y[p.id].progress.postprocess,P.setState({files:Y})}else P.log("Not setting progress for a file that has been removed: "+p.id)}),this.on("restored",function(){P.calculateTotalProgress()}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",function(){return P.updateOnlineStatus()}),window.addEventListener("offline",function(){return P.updateOnlineStatus()}),setTimeout(function(){return P.updateOnlineStatus()},3e3))},D.updateOnlineStatus=function(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit
1("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},D.getID=function(){return this.opts.id},D.use=function(P,B){if("function"!=typeof P)throw new TypeError("Expected a plugin class, but got "+(null===P?"null":typeof P)+". Please verify that the plugin was imported and spelled correctly.");var Y=new P(this,B),j=Y.id;if(this.plugins[Y.type]=this.plugins[Y.type]||[],!j)throw new Error("Your plugin must have an id");if(!Y.type)throw new Error("Your plugin must have a type");var ee=this.getPlugin(j);if(ee){var ne="Already found a plugin named '"+ee.id+"'. Tried to use: '"+j+"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(ne)}return P.VERSION&&this.log("Using "+j+" v"+P.VERSION),this.plugins[Y.type].push(Y),Y.install(),this},D.getPlugin=function(P){var B=null;return this.iteratePlugins(function(p){if(p.id===P)return B=p,!1}),B},D.iteratePlugins=function(P){var B=this;Object.keys(this.plugins).forEach(function(p){B.plugins[p].forEach(P)})},D.removePlugin=function(P){var B;this.log("Removing plugin "+P.id),this.emit("plugin-remove",P),P.uninstall&&P.uninstall();var p=this.plugins[P.type].slice(),Y=x(p,function(ne){return ne.id===P.id});-1!==Y&&(p.splice(Y,1),this.plugins[P.type]=p);var ee={plugins:o({},this.getState().plugins,(B={},B[P.id]=void 0,B))};this.setState(ee)},D.close=function(){var P=this;this.log("Closing Uppy instance "+this.opts.id+": removing all files and uninstalling plugins"),this.reset(),this.storeUnsubscribe(),this.iteratePlugins(function(B){P.removePlugin(B)})},D.info=function(P,B,p){void 0===B&&(B="info"),void 0===p&&(p=3e3);var Y="object"==typeof P;this.setState({info:{isHidden:!1,type:B,message:Y?P.message:P,details:Y?P.details:null}}),this.emit("info-visible"),clearTimeout(this.infoTimeoutID),this.infoTimeoutID=0!==p?setTimeout(this.hideInfo,p):void 0},D.hideInfo=function(){var P=o({},this.getState().info,{isHidden:!0});this.setState({info:P}),this.emit("info-hidden")},D.log=function(P,B){var p=this.opts.logger;switch(B){case"error":p.error(P);break;case"warning":p.warn(P);break;default:p.debug(P)}},D.run=function(){return this.log("Calling run() is no longer necessary.","warning"),this},D.restore=function(P){return this.log('Core: attempting to restore upload "'+P+'"'),this.getState().currentUploads[P]?this.runUpload(P):(this.removeUpload(P),Promise.reject(new Error("Nonexistent upload")))},D.createUpload=function(P,B){var p;void 0===B&&(B={});var j=B.forceAllowNewUpload,ee=void 0!==j&&j,ne=this.getState(),se=ne.allowNewUpload,le=ne.currentUploads;if(!se&&!ee)throw new Error("Cannot create a new upload: already uploading.");var he=f();return this.emit("upload",{id:he,fileIDs:P}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploads,currentUploads:o({},le,(p={},p[he]={fileIDs:P,step:0,result:{}},p))}),he},D.getUpload=function(P){return this.getState().currentUploads[P]},D.addResultData=function(P,B){var p;if(this.getUpload(P)){var j=this.getState().currentUploads,ee=o({},j[P],{result:o({},j[P].result,B)});this.setState({currentUploads:o({},j,(p={},p[P]=ee,p))})}else this.log("Not setting result for an upload that has been removed: "+P)},D.removeUpload=function(P){var B=o({},this.getState().currentUploads);delete B[P],this.setState({currentUploads:B})},D.runUpload=function(P){var B=this,Y=this.getState().currentUploads[P].step,j=[].concat(this.preProcessors,this.uploaders,this.postProcessors),ee=Promise.resolve();return j.forEach(function(ne,se){se<Y||(ee=ee.then(function(){var le,ve=B.getState().currentUploads,z=ve[P];if(z){var te=o({},z,{step:se});return B.setState({currentUploads:o({},ve,(le={},le[P]=te,le))}),ne(te.fileIDs,P)}}).then(function(){return null}))}),ee.catch(function(ne){B.emit("error",ne),B.removeUpload(P)}),ee.then(function(){var le=B.getState().currentUploads[P];if(le){le.fileIDs.forEach(function(te){var me=B.getFile(te);me&&me.progress.postprocess&&B.emit("postprocess-complete",me)});var he=le.fileIDs.map(function(te){return B.getFile(te)}),ve=he.filter(function(te){return!te.error}),z=he.filter(function(te){return te.error});B.addResultData(P,{successful:ve,failed:z,uploadID:P})}}).then(function(){var se=B.getState().currentUploads;if(se[P]){var he=se[P].result;
1return B.emit("complete",he),B.removeUpload(P),he}}).then(function(ne){return null==ne&&B.log("Not setting result for an upload that has been removed: "+P),ne})},D.upload=function(){var P=this;this.plugins.uploader||this.log("No uploader type plugins are used","warning");var p=this.getState().files,Y=this.opts.onBeforeUpload(p);return!1===Y?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(Y&&"object"==typeof Y&&(p=Y,this.setState({files:p})),Promise.resolve().then(function(){P.checkMinNumberOfFiles(p),P.checkRequiredMetaFields(p)}).catch(function(j){P.showOrLogErrorAndThrow(j)}).then(function(){var ee=P.getState().currentUploads,ne=Object.keys(ee).reduce(function(he,ve){return he.concat(ee[ve].fileIDs)},[]),se=[];Object.keys(p).forEach(function(he){var ve=P.getFile(he);!ve.progress.uploadStarted&&-1===ne.indexOf(he)&&se.push(ve.id)});var le=P.createUpload(se);return P.runUpload(le)}).catch(function(j){P.showOrLogErrorAndThrow(j,{showInformer:!1})}))},function(C,D,I){D&&n(C.prototype,D),I&&n(C,I)}(C,[{key:"state",get:function(){return this.getState()}}]),C}();b.VERSION="1.20.1",O.exports=function(D){return new b(D)},O.exports.Uppy=b,O.exports.Plugin=R,O.exports.debugLogger=N},95276:(O,v,e)=>{var o=e(38638),n={debug:function(){},warn:function(){},error:function(){for(var d,u=arguments.length,c=new Array(u),t=0;t<u;t++)c[t]=arguments[t];return(d=console).error.apply(d,["[Uppy] ["+o()+"]"].concat(c))}},l={debug:function(){for(var d=console.debug||console.log,u=arguments.length,c=new Array(u),t=0;t<u;t++)c[t]=arguments[t];d.call.apply(d,[console,"[Uppy] ["+o()+"]"].concat(c))},warn:function(){for(var d,u=arguments.length,c=new Array(u),t=0;t<u;t++)c[t]=arguments[t];return(d=console).warn.apply(d,["[Uppy] ["+o()+"]"].concat(c))},error:function(){for(var d,u=arguments.length,c=new Array(u),t=0;t<u;t++)c[t]=arguments[t];return(d=console).error.apply(d,["[Uppy] ["+o()+"]"].concat(c))}};O.exports={justErrorsLogger:n,debugLogger:l}},73823:O=>{O.exports=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;var o=/Edge\/(\d+\.\d+)/.exec(e);if(!o)return!0;var l=o[1].split("."),a=l[0],d=l[1];return a=parseInt(a,10),d=parseInt(d,10),a<15||15===a&&d<15063||a>18||18===a&&d>=18218}},40812:(O,v,e)=>{function n(c,t){return(n=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i})(c,t)}var l=e(79606),a=l.h,u=function(c){function t(){for(var i,s=arguments.length,r=new Array(s),f=0;f<s;f++)r[f]=arguments[f];return(i=c.call.apply(c,[this].concat(r))||this).triggerFileInputClick=function(){i.fileInput.click()},i.triggerFolderInputClick=function(){i.folderInput.click()},i.onFileInputChange=function(g){i.props.handleInputChange(g),g.target.value=null},i.renderHiddenInput=function(g,A){return a("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:g,type:"file",name:"files[]",multiple:1!==i.props.maxNumberOfFiles,onChange:i.onFileInputChange,accept:i.props.allowedFileTypes,ref:A})},i.renderMyDeviceAcquirer=function(){return a("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:i.triggerFileInputClick},a("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},a("g",{fill:"none",fillRule:"evenodd"},a("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),a("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),a("div",{className:"uppy-DashboardTab-name"},i.props.i18n("myDevice"))))},i.renderBrowseButton=function(g,A){var w=i.props.acquirers.length;return a("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:A,"data-uppy-super-focusable":0===w},g)},i.renderDropPasteBrowseTagline=function(){var g=i.props.acquirers.length,A=i.props.fileManagerSelectionType,w=A.charAt(0).toUpperCase()+A.slice(1),U="browse",F="browse",y="browse";if("files"===A)try{U=i.props.i18n("browse"),F=i.props.i18n("browse"),y=i.props.i18n("browse")}catch(K){}try{F=i.props.i18n("browseFiles"),y=i.props.i18n("browseFolders")}catch(K){}var H,S=i.renderBrowseButton(U,i.triggerFileInputClick),x=i.renderBrowseButton(F,i.triggerFileInputClick),L=i.renderBrowseButton(y,i.triggerFolderInputClick);if(H=g>0?i.props.i18nArray("dropPasteImport"+w,{browseFiles:x,browseFolders:L,browse:S}):i.props.i18nArray("dropPaste"+w,{browseFiles:x,browseFolders:L,browse:S}),"files"===A)try{H=g>0?i.props.i18nArray("dropPasteImport",{browse:S}):i.props.i18nArray("dropPaste",{browse:S})}catch(K){}return i.props.disableLocalFiles&&(H=i.props.i18n("importFiles")),a("div",{className:"uppy-Dashboard-AddFiles-title"},H)},i.renderAcquirer=function(g){return a("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":g.id},a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"aria-controls":"uppy-DashboardContent-panel--"+g.id,"aria-selected":i.props.activePickerPanel.id===g.id,"data-uppy-super-focusable":!0,onClick:function(){return i.props.showPanel(g.i
1d)}},g.icon(),a("div",{className:"uppy-DashboardTab-name"},g.name)))},i.renderAcquirers=function(g,A){var w=[].concat(g),U=w.splice(g.length-2,g.length);return a("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!A&&i.renderMyDeviceAcquirer(),w.map(function(F){return i.renderAcquirer(F)}),a("span",{role:"presentation",style:"white-space: nowrap;"},U.map(function(F){return i.renderAcquirer(F)})))},i}!function(c,t){c.prototype=Object.create(t.prototype),c.prototype.constructor=c,n(c,t)}(t,c);var h=t.prototype;return h.renderPoweredByUppy=function(){var s=a("span",null,a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},a("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),a("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy")),r=this.props.i18nArray("poweredBy2",{backwardsCompat:this.props.i18n("poweredBy"),uppy:s});return a("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},r)},h.render=function(){var s=this;return a("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,function(r){s.fileInput=r}),this.renderHiddenInput(!0,function(r){s.folderInput=r}),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),a("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&a("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))},t}(l.Component);O.exports=u},33937:(O,v,e)=>{var n=e(79606).h,l=e(82885),a=e(40812);O.exports=function(c){return n("div",{className:l("uppy-Dashboard-AddFilesPanel",c.className),"data-uppy-panelType":"AddFiles","aria-hidden":c.showAddFilesPanel},n("div",{className:"uppy-DashboardContent-bar"},n("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},c.i18n("addingMoreFiles")),n("button",{className:"uppy-DashboardContent-back",type:"button",onClick:function(h){return c.toggleAddFilesPanel(!1)}},c.i18n("back"))),n(a,c))}},31674:(O,v,e)=>{function o(){return o=Object.assign||function(F){for(var y=1;y<arguments.length;y++){var S=arguments[y];for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(F[x]=S[x])}return F},o.apply(this,arguments)}var l=e(79606).h,a=e(82885),d=e(48883),u=e(40812),c=e(33937),t=e(84272),h=e(6181),i=e(67626),s=e(20802),r=e(41631),f=e(66838);O.exports=function(y){var S=0===y.totalFileCount,x=y.containerWidth>576,L=a({"uppy-Root":y.isTargetDOMEl}),H=a({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":y.disabled,"uppy-Dashboard--animateOpenClose":y.animateOpenClose,"uppy-Dashboard--isClosing":y.isClosing,"uppy-Dashboard--isDraggingOver":y.isDraggingOver,"uppy-Dashboard--modal":!y.inline,"uppy-size--md":y.containerWidth>576,"uppy-size--lg":y.containerWidth>700,"uppy-size--xl":y.containerWidth>900,"uppy-size--height-md":y.containerHeight>400,"uppy-Dashboard--isAddFilesPanelVisible":y.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":y.areInsidesReadyToBeVisible}),K=1;y.containerWidth>900?K=5:y.containerWidth>700?K=4:y.containerWidth>576&&(K=3);var N=y.showSelectedFiles&&!S,R=y.recoveredState?Object.keys(y.recoveredState.files).length:null,_=y.files?Object.keys(y.files).filter(function(C){return y.files[C].isGhost}).length:null,b=l("div",{className:H,"data-uppy-theme":y.theme,"data-uppy-num-acquirers":y.acquirers.length,"data-uppy-drag-drop-supported":!y.disableLocalFiles&&f(),"aria-hidden":y.inline?"false":y.isHidden,"aria-disabled":y.disabled,"aria-label":y.inline?y.i18n("dashboardTitle"):y.i18n("dashboardWindowTitle"),onPaste:y.handlePaste,onDragOver:y.handleDragOver,onDragLeave:y.handleDragLeave,onDrop:y.handleDrop},l("div",{className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:y.handleClickOutside}),l("div",{className:"uppy-Dashboard-inner","aria-modal":!y.inline&&"true",role:!y.inline&&"dialog",style:{width:y.inline&&y.width?y.width:"",height:y.inline&&y.height?y.height:""}},y.inline?null:l("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":y.i18n("closeModal"),title:y.i18n("closeModal"),onClick:y.closeModal},l("span",{"aria-hidden":"true"},"\xd7")),l("div",{className:"uppy-Dashboard-innerWrap"},l("div",{className:"uppy-Dashboard-dropFilesHereHint"},y.i18n("dropHint")),N&&l(i,y),R&&l("div",{className:"uppy-Dashboard-serviceMsg"},l("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},l("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},l("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),l("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),l("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),l("strong",{className:"uppy-Dashboard-serviceMsg-title"},y.i18n("sessionRestored")),l("div",{class:"uppy-Dashboard-serviceMsg-text"},_>0?y.i18n("recoveredXFiles",{smart_count:_}):y.i18n("recoveredAllFiles"))),N?l(d,o({},y,{itemsPerRow:K})):l(u,o({},y,{isSizeMD:x})),l(r,null,y.showAddFilesPanel?l(c,o({key:"AddFiles"},y,{isSizeMD:x})):null),l(r,null,y.fileCardFor?l(s,o({key:"FileCard"},y)):null),l(r,null,y.activePickerPanel?l(t,o({key:"Picker"},y)):null),l(r,null,y.showFileEditor?l(h,o({key:"Editor"},y)):null),l("div",{className:"uppy-Dashboard-progressindicators"},y.progressindicators.map(function(C){return y.getPlugin(C.id).render(y.state)})))));return l("div",{className:L,dir:y.direction},b)}},6181:(O,v,e)=>{var n=e(79606).h,l=e(82885);
1O.exports=function(d){var u=this.props.files[this.props.fileCardFor];return n("div",{className:l("uppy-DashboardContent-panel",d.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},n("div",{className:"uppy-DashboardContent-bar"},n("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},d.i18nArray("editing",{file:n("span",{className:"uppy-DashboardContent-titleFile"},u.meta?u.meta.name:u.name)})),n("button",{className:"uppy-DashboardContent-back",type:"button",onClick:d.hideAllPanels},d.i18n("cancel")),n("button",{className:"uppy-DashboardContent-save",type:"button",onClick:d.saveFileEditor},d.i18n("save"))),n("div",{className:"uppy-DashboardContent-panelBody"},d.editors.map(function(c){return d.getPlugin(c.id).render(d.state)})))}},20802:(O,v,e)=>{function o(){return o=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var g=arguments[f];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(r[A]=g[A])}return r},o.apply(this,arguments)}function l(r,f){return(l=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A})(r,f)}var a=e(79606),d=a.h,u=a.Component,c=e(82885),t=e(72603),h=e(1096),i=e(47186),s=function(r){function f(A){var w;(w=r.call(this,A)||this).updateMeta=function(S,x){var L;w.setState({formState:o({},w.state.formState,(L={},L[x]=S,L))})},w.handleSave=function(S){S.preventDefault();var x=w.props.fileCardFor;w.props.saveFileCard(w.state.formState,x)},w.handleCancel=function(){w.props.toggleFileCard(!1)},w.saveOnEnter=function(S){if(13===S.keyCode){S.stopPropagation(),S.preventDefault();var x=w.props.files[w.props.fileCardFor];w.props.saveFileCard(w.state.formState,x.id)}},w.renderMetaFields=function(){var S=w.getMetaFields()||[],x={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return S.map(function(L){var H="uppy-Dashboard-FileCard-input-"+L.id,K=w.props.requiredMetaFields.includes(L.id);return d("fieldset",{key:L.id,className:"uppy-Dashboard-FileCard-fieldset"},d("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:H},L.name),void 0!==L.render?L.render({value:w.state.formState[L.id],onChange:function(R){return w.updateMeta(R,L.id)},fieldCSSClasses:x,required:K},d):d("input",{className:x.text,id:H,type:L.type||"text",required:K,value:w.state.formState[L.id],placeholder:L.placeholder,onKeyUp:w.saveOnEnter,onKeyDown:w.saveOnEnter,onKeyPress:w.saveOnEnter,onInput:function(R){return w.updateMeta(R.target.value,L.id)},"data-uppy-super-focusable":!0}))})};var U=w.props.files[w.props.fileCardFor],F=w.getMetaFields()||[],y={};return F.forEach(function(S){y[S.id]=U.meta[S.id]||""}),w.state={formState:y},w}!function(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,l(r,f)}(f,r);var g=f.prototype;return g.getMetaFields=function(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields},g.render=function(){var w=this,U=this.props.files[this.props.fileCardFor],F=this.props.canEditFile(U);return d("div",{className:c("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:h,onDragLeave:h,onDrop:h,onPaste:h},d("div",{className:"uppy-DashboardContent-bar"},d("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:d("span",{className:"uppy-DashboardContent-titleFile"},U.meta?U.meta.name:U.name)})),d("button",{className:"uppy-DashboardContent-back",type:"button",title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),d("div",{className:"uppy-Dashboard-FileCard-inner"},d("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:t(U.type).color}},d(i,{file:U}),F&&d("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:function(){return w.props.openFileEditor(U)}},this.props.i18n("editFile"))),d("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),d("div",{className:"uppy-Dashboard-FileCard-actions"},d("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleSave},this.props.i18n("saveChanges")),d("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel},this.props.i18n("cancel")))))},f}(u);O.exports=s},62499:(O,v,e)=>{var n=e(79606).h,l=e(45020);function a(t){var h=t.file,i=t.uploadInProgressOrComplete,s=t.metaFields,r=t.canEditFile,f=t.i18n,g=t.onClick;return!i&&s&&s.length>0||!i&&r(h)?n("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":f("editFile")+" "+h.meta.name,title:f("editFile"),onClick:function(){return g()}},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},n("g",{fillRule:"evenodd"},n("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),n("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),n("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function d(t){var h=t.i18n,i=t.onClick;return n("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":h("removeFile"),title:h("removeFile"),onClick:function(){return i()}},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},n("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),n("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function c(t){return n("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t.i18n("copyLink"),title:t.i18n("copyLink"),onClick:function(i){return function(h,i){l(i.file.uploadURL,i.i18n("copyLinkToClipboardFallback")).then(function(){i.log("Link copied to clipboard."),i.info(i.i18n("copyLinkToClipboardSuccess"),"info",3e3)}
1).catch(i.log).then(function(){return h.target.focus({preventScroll:!0})})}(i,t)}},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},n("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}O.exports=function(h){var i=h.file,s=h.uploadInProgressOrComplete,r=h.canEditFile,f=h.metaFields,g=h.showLinkToFileUploadResult,A=h.showRemoveButton,w=h.i18n,U=h.removeFile,F=h.toggleFileCard,y=h.openFileEditor,S=h.log,x=h.info;return n("div",{className:"uppy-Dashboard-Item-actionWrapper"},n(a,{i18n:w,file:i,uploadInProgressOrComplete:s,canEditFile:r,metaFields:f,onClick:function(){f&&f.length>0?F(!0,i.id):y(i)}}),g&&i.uploadURL?n(c,{file:i,i18n:w,info:x,log:S}):null,A?n(d,{i18n:w,info:h.info,log:h.log,onClick:function(){return U(i.id,"removed-by-user")}}):null)}},86627:(O,v,e)=>{var n=e(79606).h,l=e(83726),a=e(83135),h=function(s){var r=s.file,f=s.onClick;return r.error?n("span",{className:"uppy-Dashboard-Item-errorDetails","aria-label":r.error,"data-microtip-position":"bottom","data-microtip-size":"medium",role:"tooltip",onClick:f},"?"):null};O.exports=function(s){return n("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":s.file.source},function(s){var r;return r=s.containerWidth<=352?35:s.containerWidth<=576?60:30,n("div",{className:"uppy-Dashboard-Item-name",title:s.file.meta.name},a(s.file.meta.name,r))}(s),n("div",{className:"uppy-Dashboard-Item-status"},function(s){return s.file.size&&n("div",{className:"uppy-Dashboard-Item-statusSize"},l(s.file.size))}(s),function(s){return s.file.isGhost&&n("span",null," \u2022 ",n("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:s.toggleAddFilesPanel},s.i18n("reSelect")))}(s),n(h,{file:s.file,onClick:function(){alert(s.file.error)}})))}},10400:(O,v,e)=>{var n=e(79606).h,l=e(47186),a=e(72603);O.exports=function(u){return n("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:a(u.file.type).
1color}},u.showLinkToFileUploadResult&&u.file.uploadURL&&n("a",{className:"uppy-Dashboard-Item-previewLink",href:u.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":u.file.meta.name}),n(l,{file:u.file}))}},46914:(O,v,e)=>{var n=e(79606).h;function a(t){return t.isUploaded?t.i18n("uploadComplete"):t.error?t.i18n("retryUpload"):t.resumableUploads?t.file.isPaused?t.i18n("resumeUpload"):t.i18n("pauseUpload"):t.individualCancellation?t.i18n("cancelUpload"):""}function d(t){return n("div",{className:"uppy-Dashboard-Item-progress"},n("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":a(t),title:a(t),onClick:function(){return function(t){if(!t.isUploaded){if(t.error&&!t.hideRetryButton)return void t.retryUpload(t.file.id);t.resumableUploads&&!t.hidePauseResumeButton?t.pauseUpload(t.file.id):t.individualCancellation&&!t.hideCancelButton&&t.cancelUpload(t.file.id)}}(t)}},t.children))}function u(t){var h=t.children;return n("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},h)}function c(t){var h=t.progress,i=2*Math.PI*15;return n("g",null,n("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),n("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":i,"stroke-dashoffset":i-i/100*h}))}O.exports=function(h){return h.file.progress.uploadStarted?h.isUploaded?n("div",{className:"uppy-Dashboard-Item-progress"},n("div",{className:"uppy-Dashboard-Item-progressIndicator"},n(u,null,n("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),n("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):h.recoveredState?void 0:h.error&&!h.hideRetryButton?n(d,h,n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},n("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),n("path",{d:"M7.9 3H10v2H7.9z"}),n("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),n("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):h.resumableUploads&&!h.hidePauseResumeButton?n(d,h,n(u,null,n(c,{progress:h.file.progress.percentage}
1),h.file.isPaused?n("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):n("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},n("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),n("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):h.resumableUploads||!h.individualCancellation||h.hideCancelButton?n("div",{className:"uppy-Dashboard-Item-progress"},n("div",{className:"uppy-Dashboard-Item-progressIndicator"},n(u,null,n(c,{progress:h.file.progress.percentage})))):n(d,h,n(u,null,n(c,{progress:h.file.progress.percentage}),n("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}},47951:(O,v,e)=>{function n(r,f){return(n=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A})(r,f)}var l=e(79606),a=l.h,d=l.Component,u=e(82885),c=e(40064),t=e(10400),h=e(46914),i=e(86627),s=e(62499);O.exports=function(r){function f(){return r.apply(this,arguments)||this}!function(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,n(r,f)}(f,r);var g=f.prototype;return g.shouldComponentUpdate=function(w){return!c(this.props,w)},g.componentDidMount=function(){var w=this.props.file;
1w.preview||this.props.handleRequestThumbnail(w)},g.componentDidUpdate=function(){var w=this.props.file;w.preview||this.props.handleRequestThumbnail(w)},g.componentWillUnmount=function(){var w=this.props.file;w.preview||this.props.handleCancelThumbnail(w)},g.render=function(){var w=this.props.file,U=w.progress.preprocess||w.progress.postprocess,F=w.progress.uploadComplete&&!U&&!w.error,y=w.progress.uploadStarted||U,S=w.progress.uploadStarted&&!w.progress.uploadComplete||U,x=w.error||!1,L=w.isGhost,H=(this.props.individualCancellation||!S)&&!F;F&&this.props.showRemoveButtonAfterComplete&&(H=!0);var K=u({"uppy-Dashboard-Item":!0,"is-inprogress":S&&!this.props.recoveredState,"is-processing":U,"is-complete":F,"is-error":!!x,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":L});return a("div",{className:K,id:"uppy_"+w.id,role:this.props.role},a("div",{className:"uppy-Dashboard-Item-preview"},a(t,{file:w,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult}),a(h,{file:w,error:x,isUploaded:F,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,pauseUpload:this.props.pauseUpload,cancelUpload:this.props.cancelUpload,retryUpload:this.props.retryUpload,i18n:this.props.i18n})),a("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},a(i,{file:w,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel}),a(s,{file:w,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:H,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:y,removeFile:this.props.removeFile,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,i18n:this.props.i18n,log:this.props.log,info:this.props.info})))},f}(d)},48883:(O,v,e)=>{function o(){return o=Object.assign||function(t){for(var h=1;h<arguments.length;h++){var i=arguments[h];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},o.apply(this,arguments)}var n=e(47951),l=e(15443),a=e(82885),u=e(79606).h;O.exports=function(t){var h=0===t.totalFileCount,i=a("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":h}),s=1===t.itemsPerRow?71:200,r={id:t.id,error:t.error,i18n:t.i18n,log:t.log,info:t.info,acquirers:t.acquirers,resumableUploads:t.resumableUploads,individualCancellation:t.individualCancellation,hideRetryButton:t.hideRetryButton,hidePauseResumeButton:t.hidePauseResumeButton,hideCancelButton:t.hideCancelButton,showLinkToFileUploadResult:t.showLinkToFileUploadResult,showRemoveButtonAfterComplete:t.showRemoveButtonAfterComplete,isWide:t.isWide,metaFields:t.metaFields,recoveredState:t.recoveredState,retryUpload:t.retryUpload,pauseUpload:t.pauseUpload,cancelUpload:t.cancelUpload,toggleFileCard:t.toggleFileCard,removeFile:t.removeFile,handleRequestThumbn
1ail:t.handleRequestThumbnail,handleCancelThumbnail:t.handleCancelThumbnail},g=Object.keys(t.files);t.recoveredState&&g.sort(function(F,y){return t.files[y].isGhost-t.files[F].isGhost});var A=function(t,h){var i=[],s=[];return t.forEach(function(r,f){s.length<h?s.push(r):(i.push(s),s=[r])}),s.length&&i.push(s),i}(g,t.itemsPerRow);return u(l,{class:i,role:"list",data:A,renderRow:function(U){return u("div",{role:"presentation",key:U[0]},U.map(function(F){return u(n,o({key:F},r,{role:"listitem",openFileEditor:t.openFileEditor,canEditFile:t.canEditFile,toggleAddFilesPanel:t.toggleAddFilesPanel,file:t.files[F]}))}))},rowHeight:s})}},47186:(O,v,e)=>{var o=e(72603),l=e(79606).h;O.exports=function(d){var u=d.file;if(u.preview)return l("img",{className:"uppy-Dashboard-Item-previewImg",alt:u.name,src:u.preview});var c=o(u.type),t=c.color,h=c.icon;return l("div",{className:"uppy-Dashboard-Item-previewIconWrap"},l("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:t}},h),l("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},l("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}},84272:(O,v,e)=>{var n=e(79606).h,l=e(82885),a=e(1096);O.exports=function(u){return n("div",{className:l("uppy-DashboardContent-panel",u.className),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--"+u.activePickerPanel.id,onDragOver:a,onDragLeave:a,onDrop:a,onPaste:a},n("div",{className:"uppy-DashboardContent-bar"},n("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},u.i18n("importFrom",{name:u.activePickerPanel.name})),n("button",{className:"uppy-DashboardContent-back",type:"button",onClick:u.hideAllPanels},u.i18n("cancel"))),n("div",{className:"uppy-DashboardContent-panelBody"},u.getPlugin(u.activePickerPanel.id).render(u.state)))}},67626:(O,v,e)=>{var n=e(79606).h,l_STATE_ERROR="error",l_STATE_WAITING="waiting",l_STATE_PREPROCESSING="preprocessing",l_STATE_UPLOADING="uploading",l_STATE_POSTPROCESSING="postprocessing",l_STATE_COMPLETE="complete",l_STATE_PAUSED="paused";function d(c){var t=function(c,t,h,i){if(void 0===i&&(i={}),c)return l_STATE_ERROR;if(t)return l_STATE_COMPLETE;if(h)return l_STATE_PAUSED;for(var s=l_STATE_WAITING,r=Object.keys(i),f=0;f<r.length;f++){var g=i[r[f]].progress;if(g.uploadStarted&&!g.uploadComplete)return l_STATE_UPLOADING;g.preprocess&&s!==l_STATE_UPLOADING&&(s=l_STATE_PREPROCESSING),g.postprocess&&s!==l_STATE_UPLOADING&&s!==l_STATE_PREPROCESSING&&(s=l_STATE_POSTPROCESSING)}return s}(c.isAllErrored,c.isAllComplete,c.isAllPaused,c.files);switch(t){case"uploading":return c.i18n("uploadingXFiles",{smart_count:c.inProgressNotPausedFiles.length});case"preprocessing":case"postprocessing":return c.i18n("processingXFiles",{smart_count:c.processingFiles.length});case"paused":return c.i18n("uploadPaused");case"waiting":return c.i18n("xFilesSelected",{smart_count:c.newFiles.length});case"complete":return c.i18n("uploadComplete")}}O.exports=function(c){var t=c.allowNewUpload;return t&&c.maxNumberOfFiles&&(t=c.totalFileCount<c.maxNumberOfFiles),n("div",{className:"uppy-DashboardContent-bar"},c.isAllComplete||c.hideCancelButton?n("div",null):n("button",{className:"uppy-DashboardContent-back",type:"button",onClick:c.cancelAll},c.i18n("cancel")),n("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},n(d,c)),t?n("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":c.i18n("addMoreFiles"),title:c.i18n("addMoreFiles"),onClick:function(){return c.toggleAddFilesPanel(!0)}},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},n("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),n("span",{className:"uppy-DashboardContent-addMoreCaption"},c.i18n("addMore"))):n("div",null))}},41631:(O,v,e)=>{function n(i,s){return(n=Object.setPrototypeOf||function(f,g){return f.__proto__=g,f})(i,s)}var l=e(79606),a=l.cloneElement,d=l.Component,u=e(82885),c="uppy-transition-sli
1deDownUp",h=function(i){function s(f){var g;return(g=i.call(this,f)||this).state={cachedChildren:null,className:""},g}!function(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,n(i,s)}(s,i);var r=s.prototype;return r.componentWillUpdate=function(g){var A=this,w=this.state.cachedChildren,U=g.children[0];if(w!==U){var F={cachedChildren:U};U&&!w&&(F.className=c+"-enter",cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){A.base.getBoundingClientRect(),A.setState({className:c+"-enter "+c+"-enter-active"}),A.enterTimeout=setTimeout(function(){A.setState({className:""})},250)})),w&&!U&&void 0===this.leaveTimeout&&(F.cachedChildren=w,F.className=c+"-leave",cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame(function(){A.setState({className:c+"-leave "+c+"-leave-active"}),A.leaveTimeout=setTimeout(function(){A.setState({cachedChildren:null,className:""})},250)})),this.setState(F)}},r.render=function(){var g=this.state,A=g.cachedChildren,w=g.className;return A?a(A,{className:u(w,A.attributes.className)}):null},s}(d);O.exports=h},15443:(O,v,e)=>{var o=["data","rowHeight","renderRow","overscanCount","sync"];function n(){return n=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var g=arguments[f];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(r[A]=g[A])}return r},n.apply(this,arguments)}function d(r,f){return(d=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A})(r,f)}var u=e(79606),c=u.h,t=u.Component,h={position:"relative",width:"100%",minHeight:"100%"},i={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"},s=function(r){function f(A){var w;return(w=r.call(this,A)||this).handleResize=function(){w.resize()},w.handleScroll=function(){w.setState({offset:w.base.scrollTop}),w.props.sync&&w.forceUpdate()},w.focusElement=null,w.state={offset:0,height:0},w}!function(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,d(r,f)}(f,r);var g=f.prototype;return g.resize=function(){this.state.height!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})},g.componentWillUpdate=function(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)},g.componentDidUpdate=function(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()},g.componentDidMount=function(){this.resize(),window.addEventListener("resize",this.handleResize)},g.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},g.render=function(w){var U=w.data,F=w.rowHeight,y=w.renderRow,S=w.overscanCount,x=void 0===S?10:S,H=(w.sync,function(r,f){if(null==r)return{};var w,U,g={},A=Object.keys(r);for(U=0;U<A.length;U++)w=A[U],!(f.indexOf(w)>=0)&&(g[w]=r[w]);return g}(w,o)),K=this.state,N=K.offset,R=K.height,_=Math.floor(N/F),m=Math.floor(R/F);x&&(_=Math.max(0,_-_%x),m+=x);var b=_+m+4,C=U.slice(_,b),D=n({},h,{height:U.length*F}),I=n({},i,{top:_*F});return c("div",n({onScroll:this.handleScroll},H),c("div",{role:"presentation",style:D},c("div",{role:"presentation",style:I},C.map(y))))},f}(t);O.exports=s},62924:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(C){for(var D=1;D<arguments.length;D++){var I=arguments[D];for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&(C[P]=I[P])}return C},l.apply(this,arguments)}function a(C){if(void 0===C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function u(C,D){return(u=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(C,D)}var t=e(79606).h,i=e(79684).Plugin,s=e(30831),r=e(31674),f=e(79340),g=e(34887),A=e(13604),w=e(84190),U=e(26412),F=e(94581),y=e(55972),S=e(74220),x=e(75816),L=e(66219).default||e(66219),H=e(86568),K=e(73905).default||e(73905),N=e(86336);function m(){var C={};return C.promise=new Promise(function(D,I){C.resolve=D,C.reject=I}),C}function b(){return t("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},t("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}O.exports=(n=o=function(C){function D(P,B){var p;(p=C.call(this,P,B)||this).setOptions=function(j){C.prototype.setOptions.call(a(p),j),p.i18nInit()},p.i18nInit=function(){p.translator=new s([p.defaultLocale,p.uppy.locale,p.opts.locale]),p.i18n=p.translator.translate.bind(p.translator),p.i18nArray=p.translator.translateArray.bind(p.translator),p.setPluginState()},p.removeTarget=function(j){var ne=p.getPluginState().targets.filter(function(se){return se.id!==j.id});p.setPluginState({targets:ne})},p.addTarget=function(j){var ee=j.id||j.constructor.name,ne=j.title||ee,se=j.type;if("acquirer"===se||"progressindicator"===se||"editor"===se){var he={id:ee,name:ne,type:se},z=p.getPluginState().targets.slice();return z.push(he),p.setPluginState({targets:z}),p.el}p.uppy.log("Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor","error")},p.hideAllPanels=function(){var j={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1},ee=p.getPluginState();ee.activePickerPanel===j.activePickerPanel&&ee.showAddFilesPanel===j.showAddFilesPanel&&ee.showFileEditor===j.show
1FileEditor&&ee.activeOverlayType===j.activeOverlayType||p.setPluginState(j)},p.showPanel=function(j){var se=p.getPluginState().targets.filter(function(le){return"acquirer"===le.type&&le.id===j})[0];p.setPluginState({activePickerPanel:se,activeOverlayType:"PickerPanel"})},p.canEditFile=function(j){var ne=p.getPluginState().targets;return p._getEditors(ne).some(function(le){return p.uppy.getPlugin(le.id).canEditFile(j)})},p.openFileEditor=function(j){var ne=p.getPluginState().targets,se=p._getEditors(ne);p.setPluginState({showFileEditor:!0,fileCardFor:j.id||null,activeOverlayType:"FileEditor"}),se.forEach(function(le){p.uppy.getPlugin(le.id).selectFile(j)})},p.saveFileEditor=function(){var ee=p.getPluginState().targets;p._getEditors(ee).forEach(function(se){p.uppy.getPlugin(se.id).save()}),p.hideAllPanels()},p.openModal=function(){var j=m(),ee=j.promise,ne=j.resolve;if(p.savedScrollPosition=window.pageYOffset,p.savedActiveElement=document.activeElement,p.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),p.opts.animateOpenClose&&p.getPluginState().isClosing){p.el.addEventListener("animationend",function le(){p.setPluginState({isHidden:!1}),p.el.removeEventListener("animationend",le,!1),ne()},!1)}else p.setPluginState({isHidden:!1}),ne();return p.opts.browserBackButtonClose&&p.updateBrowserHistory(),document.addEventListener("keydown",p.handleKeyDownInModal),p.uppy.emit("dashboard:modal-open"),ee},p.closeModal=function(j){void 0===j&&(j={});var ne=j.manualClose,se=void 0===ne||ne,le=p.getPluginState(),he=le.isHidden,ve=le.isClosing;if(!he&&!ve){var z=m(),te=z.promise,me=z.resolve;if(p.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),p.opts.animateOpenClose){p.setPluginState({isClosing:!0});p.el.addEventListener("animationend",function we(){p.setPluginState({isHidden:!0,isClosing:!1}),p.superFocus.cancel(),p.savedActiveElement.focus(),p.el.removeEventListener("animationend",we,!1),me()},!1)}else p.setPluginState({isHidden:!0}),p.superFocus.cancel(),p.savedActiveElement.focus(),me();return document.removeEventListener("keydown",p.handleKeyDownInModal),se&&p.opts.browserBackButtonClose&&history.state&&history.state[p.modalName]&&history.go(-1),p.uppy.emit("dashboard:modal-closed"),te}},p.isModalOpen=function(){return!p.getPluginState().isHidden||!1},p.requestCloseModal=function(){return p.opts.onRequestCloseModal?p.opts.onRequestCloseModal():p.closeModal()},p.setDarkModeCapability=function(j){var ne=p.uppy.getState().capabilities;p.uppy.setState({capabilities:l({},ne,{darkMode:j})})},p.handleSystemDarkModeChange=function(j){var ee=j.matches;p.uppy.log("[Dashboard] Dark mode is "+(ee?"on":"off")),p.setDarkModeCapability(ee)},p.toggleFileCard=function(j,ee){var ne=p.uppy.getFile(ee);j?p.uppy.emit("dashboard:file-edit-start",ne):p.uppy.emit("dashboard:file-edit-complete",ne),p.setPluginState({fileCardFor:j?ee:null,activeOverlayType:j?"FileCard":null})},p.toggleAddFilesPanel=function(j){p.setPluginState({showAddFilesPanel:j,activeOverlayType:j?"AddFiles":null})},p.addFiles=function(j){var ee=j.map(function(ne){return{source:p.id,name:ne.name,type:ne.type,data:ne,meta:{relativePath:ne.relativePath||null}}});try{p.uppy.addFiles(ee)}catch(ne){p.uppy.log(ne)}},p.startListeningToResize=function(){p.resizeObserver=new L(function(j,ee){var se=j[0].contentRect,le=se.width,he=se.height;p.uppy.log("[Dashboard] resized: "+le+" / "+he,"debug"),p.setPluginState({containerWidth:le,containerHeight:he,areInsidesReadyToBeVisible:!0})}),p.resizeObserver.observe(p.el.querySelector(".uppy-Dashboard-inner")),p.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(function(){var j=p.getPluginState(),ee=!p.opts.inline&&j.isHidden;!j.areInsidesReadyToBeVisible&&!ee&&(p.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),p.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},p.stopListeningToResize=function(){p.resizeObserver.disconnect(),clearTimeout(p.makeDashboardInsidesVisibleAnywayTimeout)},p.recordIfFocusedOnUppyRecently=function(j){p.el.contains(j.target)?p.ifFocusedOnUppyRecently=!0:(p.ifFocusedOnUppyRecently=!1,p.superFocus.cancel())},p.disableAllFocusableElements=function(j){var ee=U(p.el.querySelectorAll(N));j?ee.forEach(function(ne){var se=ne.getAttribute("tabindex");se&&(ne.dataset.inertTabindex=se),ne.setAttribute("tabindex","-1")}):ee.forEach(function(ne){"inertTabindex"in ne.dataset?ne.setAttribute("tabindex",ne.dataset.inertTabindex):ne.removeAttribute("tabindex")}),p.dashboardIsDisabled=j},p.updateBrowserHistory=function(){var j;history.state&&history.state[p.modalName]||history.pushState(l({},history.state,((j={})[p.modalName]=!0,j)),"");window.addEventListener("popstate",p.handlePopState,!1)},p.handlePopState=function(j){p.isModalOpen()&&(!j.state||!j.state[p.modalName])&&p.closeModal({manualClose:!1}),!p.isModalOpen()&&j.state&&j.state[p.modalName]&&history.go(-1)},p.handleKeyDownInModal=function(j){27===j.keyCode&&p.requestCloseModal(j),9===j.keyCode&&S.forModal(j,p.getPluginState().activeOverlayType,p.el)},p.handleClickOutside=function(){p.opts.closeModalOnClickOutside&&p.requestCloseModal()},p.handlePaste=function(j){p.uppy.iteratePlugins(function(ne){"acquirer"===ne.type&&ne.handleRootPaste&&ne.handleRootPaste(j)});
1var ee=U(j.clipboardData.files);p.addFiles(ee)},p.handleInputChange=function(j){j.preventDefault();var ee=U(j.target.files);p.addFiles(ee)},p.handleDragOver=function(j){j.preventDefault(),j.stopPropagation(),!p.opts.disabled&&!p.opts.disableLocalFiles&&(j.dataTransfer.dropEffect="copy",clearTimeout(p.removeDragOverClassTimeout),p.setPluginState({isDraggingOver:!0}))},p.handleDragLeave=function(j){j.preventDefault(),j.stopPropagation(),!p.opts.disabled&&!p.opts.disableLocalFiles&&(clearTimeout(p.removeDragOverClassTimeout),p.removeDragOverClassTimeout=setTimeout(function(){p.setPluginState({isDraggingOver:!1})},50))},p.handleDrop=function(j,ee){if(j.preventDefault(),j.stopPropagation(),!p.opts.disabled&&!p.opts.disableLocalFiles){clearTimeout(p.removeDragOverClassTimeout),p.setPluginState({isDraggingOver:!1}),p.uppy.iteratePlugins(function(le){"acquirer"===le.type&&le.handleRootDrop&&le.handleRootDrop(j)});var ne=!1;F(j.dataTransfer,{logDropError:function(he){p.uppy.log(he,"error"),ne||(p.uppy.info(he.message,"error"),ne=!0)}}).then(function(le){le.length>0&&(p.uppy.log("[Dashboard] Files were dropped"),p.addFiles(le))})}}
1,p.handleRequestThumbnail=function(j){p.opts.waitForThumbnailsBeforeUpload||p.uppy.emit("thumbnail:request",j)},p.handleCancelThumbnail=function(j){p.opts.waitForThumbnailsBeforeUpload||p.uppy.emit("thumbnail:cancel",j)},p.handleKeyDownInInline=function(j){9===j.keyCode&&S.forInline(j,p.getPluginState().activeOverlayType,p.el)},p.handlePasteOnBody=function(j){p.el.contains(document.activeElement)&&p.handlePaste(j)},p.handleComplete=function(j){var ee=j.failed;p.opts.closeAfterFinish&&0===ee.length&&p.requestCloseModal()},p.handleCancelRestore=function(){p.uppy.emit("restore-canceled")},p._openFileEditorWhenFilesAdded=function(j){var ee=j[0];p.canEditFile(ee)&&p.openFileEditor(ee)},p.initEvents=function(){if(p.opts.trigger&&!p.opts.inline){var j=w(p.opts.trigger);j?j.forEach(function(ee){return ee.addEventListener("click",p.openModal)}):p.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}p.startListeningToResize(),document.addEventListener("paste",p.handlePasteOnBody),p.uppy.on("plugin-remove",p.removeTarget),p.uppy.on("file-added",p.hideAllPanels),p.uppy.on("dashboard:modal-closed",p.hideAllPanels),p.uppy.on("file-editor:complete",p.hideAllPanels),p.uppy.on("complete",p.handleComplete),document.addEventListener("focus",p.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",p.recordIfFocusedOnUppyRecently,!0),p.opts.inline&&p.el.addEventListener("keydown",p.handleKeyDownInInline),p.opts.autoOpenFileEditor&&p.uppy.on("files-added",p._openFileEditorWhenFilesAdded)},p.removeEvents=function(){var j=w(p.opts.trigger);!p.opts.inline&&j&&j.forEach(function(ee){return ee.removeEventListener("click",p.openModal)}),p.stopListeningToResize(),document.removeEventListener("paste",p.handlePasteOnBody),window.removeEventListener("popstate",p.handlePopState,!1),p.uppy.off("plugin-remove",p.removeTarget),p.uppy.off("file-added",p.hideAllPanels),p.uppy.off("dashboard:modal-closed",p.hideAllPanels),p.uppy.off("file-editor:complete",p.hideAllPanels),p.uppy.off("complete",p.handleComplete),document.removeEventListener("focus",p.recordIfFocusedOnUppyRecently),document.removeEventListener("click",p.recordIfFocusedOnUppyRecently),p.opts.inline&&p.el.removeEventListener("keydown",p.handleKeyDownInInline),p.opts.autoOpenFileEditor&&p.uppy.off("files-added",p._openFileEditorWhenFilesAdded)},p.superFocusOnEachUpdate=function(){var j=p.el.contains(document.activeElement),ee=document.activeElement===document.body||null===document.activeElement,ne=p.uppy.getState().info.isHidden,se=!p.opts.inline;ne&&(se||j||ee&&p.ifFocusedOnUppyRecently)?p.superFocus(p.el,p.getPluginState().activeOverlayType):p.superFocus.cancel()},p.afterUpdate=function(){!p.opts.disabled||p.dashboardIsDisabled?(!p.opts.disabled&&p.dashboardIsDisabled&&p.disableAllFocusableElements(!1),p.superFocusOnEachUpdate()):p.disableAllFocusableElements(!0)},p.cancelUpload=function(j){p.uppy.removeFile(j)},p.saveFileCard=function(j,ee){p.uppy.setFileMeta(ee,j),p.toggleFileCard(!1,ee)},p._attachRenderFunctionToTarget=function(j){var ee=p.uppy.getPlugin(j.id);return l({},j,{icon:ee.icon||p.opts.defaultPickerIcon,render:ee.render})},p._isTargetSupported=function(j){var ee=p.uppy.getPlugin(j.id);return"function"!=typeof ee.isSupported||ee.isSupported()},p._getAcquirers=K(function(j){return j.filter(function(ee){return"acquirer"===ee.type&&p._isTargetSupported(ee)}).map(p._attachRenderFunctionToTarget)}),p._getProgressIndicators=K(function(j){return j.filter(function(ee){return"progressindicator"===ee.type}).map(p._attachRenderFunctionToTarget)}),p._getEditors=K(function(j){return j.filter(function(ee){return"editor"===ee.type}).map(p._attachRenderFunctionToTarget)}),p.render=function(j){var ze,ee=p.getPluginState(),ne=j.files,se=j.capabilities,le=j.allowNewUpload,he=Object.keys(ne).filter(function(Pe){return!ne[Pe].progress.uploadStarted}),ve=Object.keys(ne).filter(function(Pe){return ne[Pe].progress.uploadStarted}),z=Object.keys(ne).filter(function(Pe){return ne[Pe].isPaused}),te=Object.keys(ne).filter(function(Pe){return ne[Pe].progress.uploadComplete}),me=Object.keys(ne).filter(function(Pe){return ne[Pe].error}),ce=Object.keys(ne).filter(function(Pe){return!ne[Pe].progress.uploadComplete&&ne[Pe].progress.uploadStarted}),we=ce.filter(function(Pe){return!ne[Pe].isPaused}),Fe=Object.keys(ne).filter(function(Pe){return ne[Pe].progress.preprocess||ne[Pe].progress.postprocess}
1),Oe=ve.length>0,Ne=100===j.totalProgress&&te.length===Object.keys(ne).length&&0===Fe.length,Ce=Oe&&me.length===ve.length,Ee=0!==ce.length&&z.length===ce.length,xe=p._getAcquirers(ee.targets),Te=p._getProgressIndicators(ee.targets),Be=p._getEditors(ee.targets);return ze="auto"===p.opts.theme?se.darkMode?"dark":"light":p.opts.theme,["files","folders","both"].indexOf(p.opts.fileManagerSelectionType)<0&&(p.opts.fileManagerSelectionType="files",console.error('Unsupported option for "fileManagerSelectionType". Using default of "'+p.opts.fileManagerSelectionType+'".')),r({state:j,isHidden:ee.isHidden,files:ne,newFiles:he,uploadStartedFiles:ve,completeFiles:te,erroredFiles:me,inProgressFiles:ce,inProgressNotPausedFiles:we,processingFiles:Fe,isUploadStarted:Oe,isAllComplete:Ne,isAllErrored:Ce,isAllPaused:Ee,totalFileCount:Object.keys(ne).length,totalProgress:j.totalProgress,allowNewUpload:le,acquirers:xe,theme:ze,disabled:p.opts.disabled,disableLocalFiles:p.opts.disableLocalFiles,direction:p.opts.direction,activePickerPanel:ee.activePickerPanel,showFileEditor:ee.showFileEditor,saveFileEditor:p.saveFileEditor,disableAllFocusableElements:p.disableAllFocusableElements,animateOpenClose:p.opts.animateOpenClose,isClosing:ee.isClosing,getPlugin:p.uppy.getPlugin,progressindicators:Te,editors:Be,autoProceed:p.uppy.opts.autoProceed,id:p.id,closeModal:p.requestCloseModal,handleClickOutside:p.handleClickOutside,handleInputChange:p.handleInputChange,handlePaste:p.handlePaste,inline:p.opts.inline,showPanel:p.showPanel,hideAllPanels:p.hideAllPanels,log:p.uppy.log,i18n:p.i18n,i18nArray:p.i18nArray,removeFile:p.uppy.removeFile,uppy:p.uppy,info:p.uppy.info,note:p.opts.note,recoveredState:j.recoveredState,metaFields:ee.metaFields,resumableUploads:se.resumableUploads||!1,individualCancellation:se.individualCancellation,isMobileDevice:se.isMobileDevice,pauseUpload:p.uppy.pauseResume,retryUpload:p.uppy.retryUpload,cancelUpload:p.cancelUpload,cancelAll:p.uppy.cancelAll,fileCardFor:ee.fileCardFor,toggleFileCard:p.toggleFileCard,toggleAddFilesPanel:p.toggleAddFilesPanel,showAddFilesPanel:ee.showAddFilesPanel,saveFileCard:p.saveFileCard,openFileEditor:p.openFileEditor,canEditFile:p.canEditFile,width:p.opts.width,height:p.opts.height,showLinkToFileUploadResult:p.opts.showLinkToFileUploadResult,fileManagerSelectionType:p.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:p.opts.proudlyDisplayPoweredByUppy,hideCancelButton:p.opts.hideCancelButton,hideRetryButton:p.opts.hideRetryButton,hidePauseResumeButton:p.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:p.opts.showRemoveButtonAfterComplete,containerWidth:ee.containerWidth,containerHeight:ee.containerHeight,areInsidesReadyToBeVisible:ee.areInsidesReadyToBeVisible,isTargetDOMEl:p.isTargetDOMEl,parentElement:p.el,allowedFileTypes:p.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:p.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:p.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:p.opts.showSelectedFiles,handleCancelRestore:p.handleCancelRestore,handleRequestThumbn
1ail:p.handleRequestThumbnail,handleCancelThumbnail:p.handleCancelThumbnail,isDraggingOver:ee.isDraggingOver,handleDragOver:p.handleDragOver,handleDragLeave:p.handleDragLeave,handleDrop:p.handleDrop})},p.discoverProviderPlugins=function(){p.uppy.iteratePlugins(function(j){j&&!j.target&&j.opts&&j.opts.target===p.constructor&&p.addTarget(j)})},p.install=function(){p.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:p.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});var j=p.opts,ee=j.inline,ne=j.closeAfterFinish;if(ee&&ne)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");p.uppy.opts.allowMultipleUploads&&ne&&p.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploads` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");var le=p.opts.target;le&&p.mount(le,a(p)),(p.opts.plugins||[]).forEach(function(z){var te=p.uppy.getPlugin(z);te&&te.mount(a(p),te)}),p.opts.disableStatusBar||p.uppy.use(f,{id:p.id+":StatusBar",target:a(p),hideUploadButton:p.opts.hideUploadButton,hideRetryButton:p.opts.hideRetryButton,hidePauseResumeButton:p.opts.hidePauseResumeButton,hideCancelButton:p.opts.hideCancelButton,showProgressDetails:p.opts.showProgressDetails,hideAfterFinish:p.opts.hideProgressAfterFinish,locale:p.opts.locale,doneButtonHandler:p.opts.doneButtonHandler}),p.opts.disableInformer||p.uppy.use(g,{id:p.id+":Informer",target:a(p)}),p.opts.disableThumbnailGenerator||p.uppy.use(A,{id:p.id+":ThumbnailGenerator",thumbnailWidth:p.opts.thumbnailWidth,thumbnailType:p.opts.thumbnailType,waitForThumbnailsBeforeUpload:p.opts.waitForThumbnailsBeforeUpload,lazy:!p.opts.waitForThumbnailsBeforeUpload}),p.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;var ve=!!p.darkModeMediaQuery&&p.darkModeMediaQuery.matches;p.uppy.log("[Dashboard] Dark mode is "+(ve?"on":"off")),p.setDarkModeCapability(ve),"auto"===p.opts.theme&&p.darkModeMediaQuery.addListener(p.handleSystemDarkModeChange),p.discoverProviderPlugins(),p.initEvents()},p.uninstall=function(){if(!p.opts.disableInformer){var j=p.uppy.getPlugin(p.id+":Informer");j&&p.uppy.removePlugin(j)}if(!p.opts.disableStatusBar){var ee=p.uppy.getPlugin(p.id+":StatusBar");ee&&p.uppy.removePlugin(ee)}if(!p.opts.disableThumbnailGenerator){var ne=p.uppy.getPlugin(p.id+":ThumbnailGenerator");ne&&p.uppy.removePlugin(ne)}(p.opts.plugins||[]).forEach(function(le){var he=p.uppy.getPlugin(le);he&&he.unmount()}),"auto"===p.opts.theme&&p.darkModeMediaQuery.removeListener(p.handleSystemDarkModeChange),p.unmount(),p.removeEvents()},p.id=p.opts.id||"Dashboard",p.title="Dashboard",p.type="orchestrator",p.modalName="uppy-Dashboard-"+x(),p.defaultLocale={strings:{closeModal:"Close Modal",importFrom:"Import from %{name}",addingMoreFiles:"Adding more files",addMoreFiles:"Add more files",dashboardWindowTitle:"File Uploader Window (Press escape to close)",dashboardTitle:"File Uploader",copyLinkToClipboardSuccess:"Link copied to clipboard",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",fileSource:"File source: %{name}",back:"Back",addMore:"Add more",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",save:"Save",saveChanges:"Save changes",cancel:"Cancel",myDevice:"My Device",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",dropHint:"Drop your files here",browseFiles:"browse files",browseFolders:"browse folders",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",poweredBy2:"%{backwardsCompat} %{uppy}",poweredBy:"Powered by"}};var Y={target:"body",metaFields:[],trigger:"#uppy-select-files",inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:b,showLinkToFileUploadResult:!0,showProgressDetail
1s:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:function(){p.uppy.reset(),p.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:function(){return p.closeModal()},showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};return p.opts=l({},Y,B),p.i18nInit(),p.superFocus=H(),p.ifFocusedOnUppyRecently=!1,p.makeDashboardInsidesVisibleAnywayTimeout=null,p.removeDragOverClassTimeout=null,p}return function(C,D){C.prototype=Object.create(D.prototype),C.prototype.constructor=C,u(C,D)}(D,C),D.prototype.onMount=function(){var B=this.el;y(B)||(B.dir="ltr")},D}(i),o.VERSION="1.21.1",n)},45020:O=>{O.exports=function(e,o){return o=o||"Copy the URL below",new Promise(function(n){var l=document.createElement("textarea");l.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),l.value=e,document.body.appendChild(l),l.select();var a=function(){document.body.removeChild(l),window.prompt(o,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(l),n()):a()}catch(u){return document.body.removeChild(l),a()}})}},86568:(O,v,e)=>{var o=e(86906),n=e(86336),l=e(17718);O.exports=function(){var d=!1;return o(function(t,h){var i=l(t,h),s=i.contains(document.activeElement);if(!s||!d){var r=i.querySelector("[data-uppy-super-focusable]");if(!s||r)if(r)r.focus({preventScroll:!0}),d=!0;else{var f=i.querySelector(n);f&&f.focus({preventScroll:!0}),d=!1}}},260)}},17718:O=>{O.exports=function(e,o){if(o){var n=e.querySelector('[data-uppy-paneltype="'+o+'"]');if(n)return n}return e}},72603:(O,v,e)=>{var n=e(79606).h;O.exports=function(s){var r={color:"#838999",icon:n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},n("g",{fill:"#A7AFB7",fillRule:"nonzero"},n("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),n("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!s)return r;var f=s.split("/")[0],g=s.split("/")[1];if("text"===f)return{color:"#5a5e69",icon:n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},n("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))};if("image"===f)return{color:"#686de0",icon:n("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},n("g",{fill:"#686DE0",fillRule:"evenodd"},n("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),n("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),n("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))};if("audio"===f)return{color:"#068dbb",icon:n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},n("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))};if("video"===f)return{color:"#19af67",icon:n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},n("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm
11 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))};if("application"===f&&"pdf"===g)return{color:"#e25149",icon:n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},n("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))};return"application"===f&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(g)?{color:"#00C469",icon:n("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},n("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:r}},1096:O=>{O.exports=function(e){var o=e.target.tagName;"INPUT"!==o&&"TEXTAREA"!==o?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()}},74220:(O,v,e)=>{var o=e(26412),n=e(17718),l=e(86336);function a(t,h){var i=h[0];i&&(i.focus(),t.preventDefault())}function c(t,h,i){var s=n(i,h),r=o(s.querySelectorAll(l)),f=r.indexOf(document.activeElement);!function(t){return t.contains(document.activeElement)}(s)?a(t,r):t.shiftKey&&0===f?function(t,h){var i=h[h.length-1];i&&(i.focus(),t.preventDefault())}(t,r):!t.shiftKey&&f===r.length-1&&a(t,r)}O.exports={forModal:function(h,i,s){c(h,i,s)},forInline:function(h,i,s){null===i||c(h,i,s)}}},38143:(O,v,e)=>{var o,n;function l(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,h=e(95290).Provider,s=e(47214).ProviderViews,f=e(79606).h;O.exports=(n=o=function(g){function A(U,F){var y;return(y=g.call(this,U,F)||this).id=y.opts.id||"Dropbox",h.initPlugin(l(y),F),y.title=y.opts.title||"Dropbox",y.icon=function(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},f("g",{fill:"none",fillRule:"evenodd"},f("rect",{className:"uppy-ProviderIconBg",fill:"#0D2481",width:"32",height:"32",rx:"16"}),f("path",{d:"M11 8l5 3.185-5 3.186-5-3.186L11 8zm10 0l5 3.185-5 3.186-5-3.186L21 8zM6 17.556l5-3.185 5 3.185-5 3.186-5-3.186zm15-3.185l5 3.185-5 3.186-5-3.186 5-3.185zm-10 7.432l5-3.185 5 3.185-5 3.186-5-3.186z",fill:"#FFF",fillRule:"nonzero"})))},y.provider=new h(U,{companionUrl:y.opts.companionUrl,companionHeaders:y.opts.companionHeaders||y.opts.serverHeaders,companionKeysParams:y.opts.companionKeysParams,companionCookiesRule:y.opts.companionCookiesRule,provider:"dropbox",pluginId:y.id}),y.onFirstRender=y.onFirstRender.bind(l(y)),y.render=y.render.bind(l(y)),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.install=function(){this.view=new s(this,{provider:this.provider});var F=this.opts.target;F&&this.mount(F,this)},w.uninstall=function(){this.view.tearDown(),this.unmount()},w.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},w.render=function(F){return this.view.render(F)},A}(c),o.VERSION="1.5.2",n)},79103:(O,v,e)=>{var o,n;function l(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}
1function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,h=e(95290).Provider,s=e(47214).ProviderViews,f=e(79606).h;O.exports=(n=o=function(g){function A(U,F){var y;return(y=g.call(this,U,F)||this).id=y.opts.id||"Facebook",h.initPlugin(l(y),F),y.title=y.opts.title||"Facebook",y.icon=function(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},f("g",{fill:"none",fillRule:"evenodd"},f("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#3C5A99"}),f("path",{d:"M17.842 26v-8.667h2.653l.398-3.377h-3.051v-2.157c0-.978.248-1.644 1.527-1.644H21V7.132A19.914 19.914 0 0 0 18.623 7c-2.352 0-3.963 1.574-3.963 4.465v2.49H12v3.378h2.66V26h3.182z",fill:"#FFF",fillRule:"nonzero"})))},y.provider=new h(U,{companionUrl:y.opts.companionUrl,companionHeaders:y.opts.companionHeaders||y.opts.serverHeaders,companionKeysParams:y.opts.companionKeysParams,companionCookiesRule:y.opts.companionCookiesRule,provider:"facebook",pluginId:y.id}),y.onFirstRender=y.onFirstRender.bind(l(y)),y.render=y.render.bind(l(y)),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.install=function(){this.view=new s(this,{provider:this.provider});var F=this.opts.target;F&&this.mount(F,this)},w.uninstall=function(){this.view.tearDown(),this.unmount()},w.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},w.render=function(F){var y={};return this.getPluginState().files.length&&!this.getPluginState().folders.length&&(y.viewType="grid",y.showFilter=!1,y.showTitles=!1),this.view.render(F,y)},A}(c),o.VERSION="1.2.2",n)},34497:(O,v,e)=>{function n(d,u){return(n=Object.setPrototypeOf||function(t,h){return t.__proto__=h,t})(d,u)}var a=e(47214).ProviderViews;O.exports=function(d){function u(){return d.apply(this,arguments)||this}return function(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,n(d,u)}(u,d),u.prototype.toggleCheckbox=function(h,i){h.stopPropagation(),h.preventDefault(),!i.custom.isTeamDrive&&!i.custom.isSharedDrive&&d.prototype.toggleCheckbox.call(this,h,i)},u}(a)},25617:(O,v,e)=>{var o,n;function l(f){if(void 0===f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function d(f,g){return(d=Object.setPrototypeOf||function(w,U){return w.__proto__=U,w})(f,g)}var c=e(79684).Plugin,h=e(95290).Provider,i=e(34497),r=e(79606).h;O.exports=(n=o=function(f){function g(w,U){var F;return(F=f.call(this,w,U)||this).id=F.opts.id||"GoogleDrive",F.title=F.opts.title||"Google Drive",h.initPlugin(l(F),U),F.title=F.opts.title||"Google Drive",F.icon=function(){return r("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},r("g",{fill:"none",fillRule:"evenodd"},r("rect",{className:"uppy-ProviderIconBg",fill:"#4285F4",width:"32",height:"32",rx:"16"}),r("path",{d:"M10.324 23.3l3-5.1H25l-3 5.1H10.324zM13 18.2l-3 5.1-3-5.1 5.839-9.924 2.999 5.1L13 18.2zm11.838-.276h-6L13 8h6l5.84 9.924h-.002z",fill:"#FFF"})))},F.provider=new h(w,{companionUrl:F.opts.companionUrl,companionHeaders:F.opts.companionHeaders||F.opts.serverHeaders,companionKeysParams:F.opts.companionKeysParams,companionCookiesRule:F.opts.companionCookiesRule,provider:"drive",pluginId:F.id}),F.onFirstRender=F.onFirstRender.bind(l(F)),F.render=F.render.bind(l(F)),F}!function(f,g){f.prototype=Object.create(g.prototype),f.prototype.constructor=f,d(f,g)}(g,f);var A=g.prototype;return A.install=function(){this.view=new i(this,{provider:this.provider});var U=this.opts.target;U&&this.mount(U,this)},A.uninstall=function(){this.view.tearDown(),this.unmount()},A.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("root","/")])},A.render=function(U){return this.view.render(U)},g}(c),o.VERSION="1.7.2",n)},34887:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(i){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(i[f]=r[f])}return i},l.apply(this,arguments)}
1function d(i,s){return(d=Object.setPrototypeOf||function(f,g){return f.__proto__=g,f})(i,s)}var c=e(79684).Plugin,h=e(79606).h;O.exports=(n=o=function(i){function s(f,g){var A;(A=i.call(this,f,g)||this).render=function(U){var F=U.info,y=F.isHidden,S=F.message,x=F.details;return h("div",{className:"uppy uppy-Informer","aria-hidden":y},h("p",{role:"alert"},S," ",x&&h("span",{"aria-label":x,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:function(){alert(S+" \n\n "+x)},onMouseOver:function(){clearTimeout(A.uppy.infoTimeoutID)},onMouseLeave:function(){A.uppy.infoTimeoutID=setTimeout(A.uppy.hideInfo,2e3)}},"?")))},A.type="progressindicator",A.id=A.opts.id||"Informer",A.title="Informer";return A.opts=l({},{},g),A}return function(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,d(i,s)}(s,i),s.prototype.install=function(){var g=this.opts.target;g&&this.mount(g,this)},s}(c),o.VERSION="1.6.6",n)},79158:(O,v,e)=>{var o,n;function l(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,h=e(95290).Provider,s=e(47214).ProviderViews,f=e(79606).h;O.exports=(n=o=function(g){function A(U,F){var y;return(y=g.call(this,U,F)||this).id=y.opts.id||"Instagram",h.initPlugin(l(y),F),y.title=y.opts.title||"Instagram",y.icon=function(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},f("g",{fill:"none",fillRule:"evenodd"},f("rect",{className:"uppy-ProviderIconBg",fill:"#E1306C",width:"32",height:"32",rx:"16"}),f("path",{d:"M16 8.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.67.31.392.144.745.374 1.036.673.299.29.529.644.673 1.035.123.317.27.794.31 1.671.043.95.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671a2.98 2.98 0 0 1-1.708 1.708c-.317.123-.794.27-1.671.31-.95.043-1.234.053-3.637.053s-2.688-.01-3.637-.053c-.877-.04-1.354-.187-1.671-.31a2.788 2.788 0 0 1-1.035-.673 2.788 2.788 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.67.144-.392.374-.745.673-1.036.29-.299.644-.529 1.035-.673.317-.123.794-.27 1.671-.31.95-.043 1.234-.052 3.637-.052zM16 7c-2.444 0-2.75.01-3.71.054-.959.044-1.613.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.813.993-1.039 1.594-.222.572-.374 1.226-.418 2.184C7.01 13.25 7 13.556 7 16s.01 2.75.054 3.71c.044.959.196 1.613.419 2.185.226.6.58 1.145 1.038 1.594.45.458.993.813 1.594 1.038.572.223 1.227.375 2.184.419.96.044 1.267.054 3.711.054s2.75-.01 3.71-.054c.959-.044 1.613-.196 2.185-.419a4.602 4.602 0 0 0 2.632-2.632c.223-.572.375-1.226.419-2.184.044-.96.054-1.267.054-3.711s-.01-2.75-.054-3.71c-.044-.959-.196-1.613-.419-2.185A4.412 4.412 0 0 0 23.49 8.51a4.412 4.412 0 0 0-1.594-1.039c-.572-.222-1.226-.374-2.184-.418C18.75 7.01 18.444 7 16 7zm0 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 7.421a2.921 2.921 0 1 1 0-5.842 2.921 2.921 0 0 1 0 5.842zm4.875-6.671a1.125 1.125 0 1 1 0-2.25 1.125 1.125 0 0 1 0 2.25z",fill:"#FFF"})))},y.provider=new h(U,{companionUrl:y.opts.companionUrl,companionHeaders:y.opts.companionHeaders||y.opts.serverHeaders,companionKeysParams:y.opts.companionKeysParams,companionCookiesRule:y.opts.companionCookiesRule,provider:"instagram",pluginId:y.id}),y.onFirstRender=y.onFirstRender.bind(l(y)),y.render=y.render.bind(l(y)),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.install=function(){this.view=new s(this,{provider:this.provider,viewType:"grid",showTitles:!1,show
1Filter:!1,showBreadcrumbs:!1});var F=this.opts.target;F&&this.mount(F,this)},w.uninstall=function(){this.view.tearDown(),this.unmount()},w.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder("recent")])},w.render=function(F){return this.view.render(F)},A}(c),o.VERSION="1.5.2",n)},61137:O=>{var v={strings:{addMoreFiles:"Dateien hinzuf\xfcgen",addingMoreFiles:"Dateien hinzuf\xfcgen",allowAccessDescription:"Um Bilder oder Videos mit Ihrer Kamera aufzunehmen, erlauben Sie dieser Website bitte Zugriff auf Ihre Kamera.",allowAccessTitle:"Bitte erlauben Sie Zugriff auf Ihre Kamera",authenticateWith:"Mit %{pluginName} verbinden",authenticateWithTitle:"Bitte authentifizieren Sie sich mit %{pluginName}, um Dateien auszuw\xe4hlen",back:"Zur\xfcck",addMore:"Dateien hinzuf\xfcgen",browse:"Suche",browseFiles:"Suche",cancel:"Abbrechen",cancelUpload:"Upload abbrechen",chooseFiles:"Dateien ausw\xe4hlen",closeModal:"Modal schlie\xdfen",companionError:"Verbindung zu Companion fehlgeschlagen",complete:"Fertig",connectedToInternet:"Verbunden mit dem Internet",copyLink:"Link kopieren",copyLinkToClipboardFallback:"Untenstehenden URL kopieren",copyLinkToClipboardSuccess:"Link in die Zwischenablage kopiert",creatingAssembly:"Upload vorbereiten...",creatingAssemblyFailed:"Transloadit: Konnte Assembly nicht erstellen",dashboardTitle:"Datei Uploader",dashboardWindowTitle:"Datei Uploader Fenster (Esc dr\xfccken zum Schlie\xdfen)",dataUploadedOfTotal:"%{complete} von %{total}",done:"Abgeschlossen",dropHereOr:"Dateien k\xf6nnen \xfcber Drag/Drop oder per %{browse} hinzugef\xfcgt werden",dropHint:"Dateien k\xf6nnen \xfcber Drag/Drop hinzugef\xfcgt werden",dropPasteBoth:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen oder per %{browse} hinzugef\xfcgt werden",dropPasteFiles:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen oder per %{browse} hinzugef\xfcgt werden",dropPasteFolders:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen oder per %{browse} hinzugef\xfcgt werden",dropPasteImportBoth:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen, per %{browse} oder von folgenden Services hinzugef\xfcgt werden",dropPasteImportFiles:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen, per %{browse} oder von folgenden Services hinzugef\xfcgt werden",dropPasteImportFolders:"Dateien k\xf6nnen \xfcber Drag/Drop, Einf\xfcgen, per %{browse} oder von folgenden Services hinzugef\xfcgt werden",editFile:"Datei bearbeiten",editing:"%{file} bearbeiten",emptyFolderAdded:"Keine Dateien konnten hinzugef\xfcgt werden, da der Ordner leer war",encoding:"Enkodieren...",enterCorrectUrl:"Falsche URL: Bitte stellen Sie sicher, dass Sie einen direkten Link zu einer Datei eingeben",enterUrlToImport:"URL zum Importieren einer Datei eingeben",exceedsSize:"Diese Datei ist gr\xf6\xdfer als die maximal erlaubte Dateigr\xf6\xdfe",failedToFetch:"Companion konnte diese URL nicht verarbeiten - stellen Sie bitte sicher, dass sie korrekt ist",failedToUpload:"Fehler beim Upload von Datei %{file}",fileSource:"Dateiquelle: %{name}",filesUploadedOfTotal:{0:"%{complete} von %{smart_count} Datei hochgeladen",1:"%{complete} von %{smart_count} Dateien hochgeladen",2:"%{complete} von %{smart_count} Dateien hochgeladen"},filter:"Filter",finishEditingFile:"Dateibearbeitung beenden",folderAdded:{0:"%{smart_count} Datei von %{folder} hinzugef\xfcgt",1:"%{smart_count} Dateien von %{folder} hinzugef\xfcgt",2:"%{smart_count} Dateien von %{folder} hinzugef\xfcgt"},import:"Import",importFrom:"Importieren von %{name}",loading:"Laden...",logOut:"Ausloggen",myDevice:"Mein Ger\xe4t",noCameraDescription:"Bitte Kamera anschlie\xdfen, um Bilder oder Videos aufzunehmen",noCameraTitle:"Kamera nicht verf\xfcgbar",noDuplicates:"Datei '%{fileName}' existiert bereits und kann nicht erneut hinzugef\xfcgt werden",noFilesFound:"Sie haben keine Dateien oder Ordner hier",noInternetConnection:"Keine Internetverbindung",noNewAlreadyUploading:"W\xe4hrend der Upload l\xe4uft, k\xf6nnen keine weiteren Dateien hinzugef\xfcgt werden",pause:"Pausieren",pauseUpload:"Upload pausieren",paused:"Pausiert",poweredBy:"Angetrieben von",processingXFiles:{0:"%{smart_count} Datei verarbeiten",1:"%{smart_count} Dateien verarbeiten",2:"%{smart_count} Dateien verarbeiten"},recordingLength:"Aufnahmedauer %{recording_length}",removeFile:"Datei entfernen",resetFilter:"Filter zur\xfccksetzen",resume:"Fortsetzen",resumeUpload:"Upload fortsetzen",retry:"Erneut versuchen",retryUpload:"Upload erneut versuchen",saveChanges:"\xc4nderungen speichern",selectX:{0:"W\xe4hlen Sie %{smart_count}",1:"W\xe4hlen Sie %{smart_count}",2:"W\xe4hlen Sie %{smart_count}"},smile:"Bitte l\xe4cheln!",startRecording:"Videoaufnahme starten",stopRecording:"Videoaufnahme beenden",takePicture:"Ein Foto machen",timedOut:"Upload f\xfcr %{seconds} Sekunden stehen geblieben, breche ab.",upload:"Upload",uploadComplete:"Upload beendet",uploadFailed:"Upload fehlgeschlagen",uploadPaused:"Upload pausiert",uploadXFiles:{0:"%{smart_count} Datei hochladen",1:"%{smart_count} Dateien hochladen",2:"%{smart_count} Dateien hochladen"},uploadXNewFiles:{0:"+%{smart_count} Datei hochladen",1:"+%{smart_count} Dateien hochladen",2:"+%{smart_count} Dateien hochladen"},uploading:"Wird hochgeladen",uploadingXFiles:{0:"%{smart_count} Datei wird hochgeladen",1:"%{smart_count} Dateien werden hochgeladen",2:"%{smart_count} Dateien werden hochgeladen"},xFilesSelected:{0:"%{smart_count} Datei ausgew\xe4hlt",1:"%{smart_count} Dateien ausgew\xe4hlt",2:"%{smart_count} Dateien ausgew\xe4hlt"},xMoreFilesAdded:{0:"%{smart_count} weitere Datei hinzugef\xfcgt",1:"%{smart_count} weitere Dateien hinzugef\xfcgt",2:"%{smart_count} weitere Dateien hinzugef\xfcgt"},xTimeLeft:"%{time} verbleibend",youCanOnlyUploadFileTypes:"Sie k\xf6nnen nur folgende Dateitypen hochladen: %{types}",youCanOnlyUploadX:{0:"Sie k\xf6nnen nur %{smart_count} Datei hochladen",1:"Sie k\xf6nnen nur %{smart_count} Dateien hochladen",2:"Sie k\xf6nnen nur %{smart_count} Dateien hochladen"},youHaveToAtLeastSelectX:{0:"Sie m\xfcssen mindestens %{smart_count} Datei ausw\xe4hlen",1:"Sie m\xfcssen mindestens %{smart_count} Dateien ausw\xe4hlen",2:"Sie m\xfcssen mindestens %{smart_count} Dateien ausw\xe4hlen"},selectAllFilesFromFolderNamed:"W\xe4hlen Sie alle Dateien aus dem Ordner %{name}",unselectAllFilesFromFolderNamed:"Heben Sie die Auswahl aller Dateien aus dem Ordner auf %{name}",selectFileNamed:"Datei aussuchen %{name}",unselectFileNamed:"Datei abw\xe4hlen %{name}",openFolderNamed:"Ordner \xf6ffnen %{name}"},pluralize:function(e){return 1===e?0:1}};"undefined"!=typeof window&&void 0!==window.Uppy&&(window.Uppy.locales.de_DE=v),O.exports=v},20080:(O,v,e)=>{var o,n;function l(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}
1function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,h=e(95290).Provider,s=e(47214).ProviderViews,f=e(79606).h;O.exports=(n=o=function(g){function A(U,F){var y;return(y=g.call(this,U,F)||this).id=y.opts.id||"OneDrive",h.initPlugin(l(y),F),y.title=y.opts.title||"OneDrive",y.icon=function(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},f("g",{fill:"none",fillRule:"evenodd"},f("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#0262C0"}),f("g",{fill:"#FFF",fillRule:"nonzero"},f("path",{d:"M24.157 22s1.492-.205 1.79-1.655a2.624 2.624 0 0 0 .03-.878c-.22-1.64-1.988-2.01-1.988-2.01s.307-1.765-1.312-2.69c-1.62-.925-3.1 0-3.1 0S18.711 13 16.366 13c-3.016 0-3.519 3.448-3.519 3.448S10 16.618 10 19.14c0 2.523 2.597 2.86 2.597 2.86h11.56z"}),f("path",{d:"M9.421 19.246c0-2.197 1.606-3.159 2.871-3.472.44-1.477 1.654-3.439 4.135-3.439H16.445c1.721 0 2.79.823 3.368 1.476a3.99 3.99 0 0 1 1.147-.171h.01l.03.002C21.017 13.5 20.691 10 16.757 10c-2.69 0-3.639 2.345-3.639 2.345s-1.95-1.482-3.955.567c-1.028 1.052-.79 2.669-.79 2.669S6 15.824 6 18.412C6 20.757 8.452 21 8.452 21h1.372a3.77 3.77 0 0 1-.403-1.754z"}))))},y.provider=new h(U,{companionUrl:y.opts.companionUrl,companionHeaders:y.opts.companionHeaders||y.opts.serverHeaders,companionCookiesRule:y.opts.companionCookiesRule,provider:"onedrive",pluginId:y.id}),y.onFirstRender=y.onFirstRender.bind(l(y)),y.render=y.render.bind(l(y)),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.install=function(){this.view=new s(this,{provider:this.provider});var F=this.opts.target;F&&this.mount(F,this)},w.uninstall=function(){this.view.tearDown(),this.unmount()},w.onFirstRender=function(){return Promise.all([this.provider.fetchPreAuthToken(),this.view.getFolder()])},w.render=function(F){return this.view.render(F)},A}(c),o.VERSION="1.2.2",n)},21871:(O,v,e)=>{var n=e(79606).h,l=function(d){return n("span",null,n("button",{type:"button",className:"uppy-u-reset",onClick:d.getFolder},d.title),d.isLast?"":" / ")};O.exports=function(a){return n("div",{className:"uppy-Provider-breadcrumbs"},n("div",{className:"uppy-Provider-breadcrumbsIcon"},a.breadcrumbsIcon),a.directories.map(function(d,u){return n(l,{key:d.id,getFolder:function(){return a.getFolder(d.id)},title:0===u?a.title:d.title,isLast:u+1===a.directories.length})}))}},65937:(O,v,e)=>{function o(){return o=Object.assign||function(h){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(h[r]=s[r])}return h},o.apply(this,arguments)}var n=e(82885),l=e(49798),a=e(15546),d=e(78696),c=e(79606).h;O.exports=function(i){var s=i.currentSelection,r=i.folders,f=i.files,g=i.uppyFiles,A=i.filterItems,U=r,F=f;""!==i.filterInput&&(U=A(r),F=A(f));var y=s.length;return c("div",{className:n("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--"+i.viewType)},c("div",{className:"uppy-ProviderBrowser-header"},c("div",{className:n("uppy-ProviderBrowser-headerBar",!i.showBreadcrumbs&&"uppy-ProviderBrowser-headerBar--simple")},i.headerComponent)),i.showFilter&&c(l,i),c(a,{columns:[{name:"Name",key:"title"}],folders:U,files:F,sortByTitle:i.sortByTitle,sortByDate:i.sortByDate,isChecked:i.isChecked,handleFolderClick:i.getNextFolder,toggleCheckbox:i.toggleCheckbox,handleScroll:i.handleScroll,title:i.title,showTitles:i.showTitles,i18n:i.i18n,viewType:i.viewType,validateRestrictions:i.validateRestrictions,uppyFiles:g,currentSelection:s}),y>0&&c(d,o({selected:y},i)))}},20850:(O,v,e)=>{function n(d,u){return(n=Object.setPrototypeOf||function(t,h){return t.__proto__=h,t})(d,u)}var a=e(79606).Component;O.exports=function(d){function u(){return d.apply(this,arguments)||this}!function(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,n(d,u)}(u,d);var c=u.prototype;return c.componentWillUnmount=function(){this.props.onUnmount()},c.render=function(){return this.props.children[0]},u}(a)},49798:(O,v,e)=>{function l(c,t){return(l=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i})(c,t)}var a=e(79606),d=a.h,u=a.Component;O.exports=function(c){function t(i){var s;return(s=c.call(this,i)||this).preventEnterPress=s.preventEnterPress.bind(function(c){if(void 0===c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(s)),s}!function(c,t){c.prototype=Object.create(t.prototype),c.prototype.constructor=c,l(c,t)}(t,c);var h=t.prototype;return h.preventEnterPress=function(s){13===s.keyCode&&(s.stopPropagation(),s.preventDefault())},h.render=function(){var s=this;return d("div",{className:"uppy-ProviderBrowser-search"},d("input",{className:"uppy-u-reset uppy-ProviderBrowser-searchInput",type:"text",placeholder:this.props.i18n("filter"),"aria-label":this.props.i18n("filter"),onKeyUp:this.preventEnterPress,onKeyDown:this.preventEnterPress,onKeyPress:this.preventEnterPress,onInput:function(f){return s.props.filterQuery(f)},value:this.props.filterInput}),d("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-ProviderBrowser-searchIcon",width:"12",height:"12",viewBox:"0 0 12 12"},d("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),this.props.filterInput&&d("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchClose",type:"button","aria-label":this.props.i18n("resetFilter"),title:this.props.i18n("resetFilter"),onClick:this.props.filterQuery},d("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},d("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))))},t}(u)},78696:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("div",{className:"uppy-ProviderBrowser-footer"},n("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:l.done},l.i18n("selectX",{smart_count:l.selected})),n("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:l.cancel}
1,l.i18n("cancel")))}},34944:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("li",{className:l.className,title:l.isDisabled?l.restrictionReason:null},n("div",{"aria-hidden":!0,className:"uppy-ProviderBrowserItem-fakeCheckbox "+(l.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":"")}),n("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-inner",onClick:l.toggleCheckbox,role:"option","aria-label":l.isChecked?l.i18n("unselectFileNamed",{name:l.title}):l.i18n("selectFileNamed",{name:l.title}),"aria-selected":l.isChecked,"aria-disabled":l.isDisabled,disabled:l.isDisabled,"data-uppy-super-focusable":!0},l.itemIconEl,l.showTitles&&l.title))}},72687:(O,v,e)=>{var n=e(79606).h;function l(){return n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},n("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function a(){return n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},n("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function d(){return n("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},n("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),n("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}O.exports=function(u){if(null!==u.itemIconString)switch(u.itemIconString){case"file":return n(l,null);case"folder":return n(a,null);case"video":return n(d,null);default:return n("img",{src:u.itemIconString})}}},83472:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){return n("li",{className:a.className,title:a.isDisabled?a.restrictionReason:null},a.isCheckboxDisabled?null:n("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-fakeCheckbox "+(a.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":""),onClick:a.toggleCheckbox,id:a.id,role:"option","aria-label":(d=a,"folder"===d.type?d.isChecked?d.i18n("unselectAllFilesFromFolderNamed",{name:d.title}):d.i18n("selectAllFilesFromFolderNamed",{name:d.title}):d.isChecked?d.i18n("unselectFileNamed",{name:d.title}):d.i18n("selectFileNamed",{name:d.title})),"aria-selected":a.isChecked,"aria-disabled":a.isDisabled,disabled:a.isDisabled,"data-uppy-super-focusable":!0}),"file"===a.type?n("label",{htmlFor:a.id,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},n("div",{className:"uppy-ProviderBrowserItem-iconWrap"},a.itemIconEl),a.showTitles&&a.title):n("button",{type:"button",className:"uppy-u-reset uppy-ProviderBrowserItem-inner",onClick:a.handleFolderClick,"aria-label":a.i18n("openFolderNamed",{name:a.title})},n("div",{className:"uppy-ProviderBrowserItem-iconWrap"},a.itemIconEl),a.showTitles&&n("span",null,a.title)));var d}},53111:(O,v,e)=>{function o(){return o=Object.assign||function(t){for(var h=1;h<arguments.length;h++){var i=arguments[h];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},o.apply(this,arguments)}var l=e(79606).h,a=e(82885),d=e(72687),u=e(34944),c=e(83472);O.exports=function(t){var h=t.getItemIcon(),i=a("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":t.isChecked},{"uppy-ProviderBrowserItem--disabled":t.isDisabled},{"uppy-ProviderBrowserItem--noPreview":"video"===h}),s=l(d,{itemIconString:h});switch(t.viewType){case"grid":return l(u,o({},t,{className:i,itemIconEl:s}));case"list":return l(c,o({},t,{className:i,itemIconEl:s}));default:throw new Error("There is no such type "+t.viewType)}}},15546:(O,v,e)=>{function o(){return o=Object.assign||function(t){for(var h=1;h<arguments.length;h++){var i=arguments[h];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},o.apply(this,arguments)}var l=e(79606).h,a=e(98449),d=e(53111),c=function(h,i){return{id:h.id,title:h.name,getItemIcon:function(){return h.icon},isChecked:i.isChecked(h),toggleCheckbox:function(r){return i.toggleCheckbox(r,h)},columns:i.columns,showTitles:i.showTitles,viewType:i.viewType,i18n:i.i18n}};
1O.exports=function(t){var h=t.folders,i=t.files,s=t.handleScroll,r=t.isChecked;return h.length||i.length?l("div",{className:"uppy-ProviderBrowser-body"},l("ul",{className:"uppy-ProviderBrowser-list",onScroll:s,role:"listbox",tabIndex:"-1"},h.map(function(f){return d(o({},c(f,t),{type:"folder",isDisabled:!!r(f)&&r(f).loading,isCheckboxDisabled:"shared-with-me"===f.id,handleFolderClick:function(){return t.handleFolderClick(f)}}))}),i.map(function(f){var g=t.validateRestrictions(a(f),[].concat(t.uppyFiles,t.currentSelection)),A=c(f,t),w=g.reason;return d(o({},A,{type:"file",isDisabled:!g.result&&!A.isChecked,restrictionReason:w}))}))):l("div",{className:"uppy-Provider-empty"},t.i18n("noFilesFound"))}},70101:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("div",{className:"uppy-Provider-loading"},n("span",null,l.i18n("loading")))}},89623:(O,v,e)=>{function n(c,t){return(n=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i})(c,t)}var l=e(79606),a=l.h,u=function(c){function t(){return c.apply(this,arguments)||this}return function(c,t){c.prototype=Object.create(t.prototype),c.prototype.constructor=c,n(c,t)}(t,c),t.prototype.render=function(){var s=a("span",{className:"uppy-Provider-authTitleName"},this.props.pluginName,a("br",null));return a("div",{className:"uppy-Provider-auth"},a("div",{className:"uppy-Provider-authIcon"},this.props.pluginIcon()),a("div",{className:"uppy-Provider-authTitle"},this.props.i18nArray("authenticateWithTitle",{pluginName:s})),a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn",onClick:this.props.handleAuth,"data-uppy-super-focusable":!0},this.props.i18nArray("authenticateWith",{pluginName:this.props.pluginName})))},t}(l.Component);O.exports=u},36956:(O,v,e)=>{var o=e(29448),n=e(21871);O.exports=function(l){var a=[];return l.showBreadcrumbs&&a.push(n({getFolder:l.getFolder,directories:l.directories,breadcrumbsIcon:l.pluginIcon&&l.pluginIcon(),title:l.title})),a.push(o({logout:l.logout,username:l.username,i18n:l.i18n})),a}},76094:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(U){for(var F=1;F<arguments.length;F++){var y=arguments[F];for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(U[S]=y[S])}return U},l.apply(this,arguments)}var d=e(79606).h,u=e(89623),c=e(36956),t=e(65937),h=e(70101),i=e(30784),s=e(13417),r=e(95252),f=e(18050),g=e(31035),A=e(20850);O.exports=(n=o=function(){function U(y,S){this.plugin=y,this.provider=S.provider,this._sharedHandler=new g(y);this.opts=l({},{viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0},S),this.addFile=this.addFile.bind(this),this.filterQuery=this.filterQuery.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.preFirstRender=this.preFirstRender.bind(this),this.handleAuth=this.handleAuth.bind(this),this.sortByTitle=this.sortByTitle.bind(this),this.sortByDate=this.sortByDate.bind(this),this.handleError=this.handleError.bind(this),this.handleScroll=this.handleScroll.bind(this),this.listAllFiles=this.listAllFiles.bind(this),this.donePicking=this.donePicking.bind(this),this.cancelPicking=this.cancelPicking.bind(this),this.clearSelection=this.clearSelection.bind(this),this.render=this.render.bind(this),this.clearSelection(),this.plugin.setPluginState({authenticated:!1,files:[],folders:[],directories:[],filterInput:"",isSearchVisible:!1})}var F=U.prototype;return F.tearDown=function(){},F._updateFilesAndFolders=function(S,x,L){this.nextPagePath=S.nextPagePath,S.items.forEach(function(H){H.isFolder?L.push(H):x.push(H)}),this.plugin.setPluginState({folders:L,files:x})},F.preFirstRender=function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},F.getFolder=function(S,x){var L=this;return this._sharedHandler.loaderWrapper(this.provider.list(S),function(H){var R,_=L.plugin.getPluginState(),m=r(_.directories,function(b){return S===b.id});R=-1!==m?_.directories.slice(0,m+1):_.directories.concat([{id:S,title:x}]),L.username=H.username||L.username,L._updateFilesAndFolders(H,[],[]),L.plugin.setPluginState({directories:R})},this.handleError)},F.getNextFolder=function(S){this.getFolder(S.requestPath,S.name),this.lastCheckbox=void 0},F.addFile=function(S){var x={id:this.providerFileToId(S),source:this.plugin.id,data:S,name:S.name||S.id,type:S.mimeType,isRemote:!0,body:{f
1ileId:S.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:""+this.provider.fileUrl(S.requestPath),body:{fileId:S.id},providerOptions:this.provider.opts}},L=s(x);L&&f(L)&&(x.preview=S.thumbnail),this.plugin.uppy.log("Adding remote file");try{return this.plugin.uppy.addFile(x),!0}catch(H){return H.isRestriction||this.plugin.uppy.log(H),!1}},F.logout=function(){var S=this;this.provider.logout().then(function(x){if(x.ok){if(!x.revoked){var L=S.plugin.uppy.i18n("companionUnauthorizeHint",{provider:S.plugin.title,url:x.manual_revoke_url});S.plugin.uppy.info(L,"info",7e3)}S.plugin.setPluginState({authenticated:!1,files:[],folders:[],directories:[]})}}).catch(this.handleError)},F.filterQuery=function(S){var x=this.plugin.getPluginState();this.plugin.setPluginState(l({},x,{filterInput:S?S.target.value:""}))},F.sortByTitle=function(){var S=l({},this.plugin.getPluginState()),x=S.files,L=S.folders,H=S.sorting,K=x.sort(function(R,_){return"titleDescending"===H?_.name.localeCompare(R.name):R.name.localeCompare(_.name)}),N=L.sort(function(R,_){return"titleDescending"===H?_.name.localeCompare(R.name):R.name.localeCompare(_.name)});this.plugin.setPluginState(l({},S,{files:K,folders:N,sorting:"titleDescending"===H?"titleAscending":"titleDescending"}))},F.sortByDate=function(){var S=l({},this.plugin.getPluginState()),x=S.files,L=S.folders,H=S.sorting,K=x.sort(function(R,_){var m=new Date(R.modifiedDate),b=new Date(_.modifiedDate);return"dateDescending"===H?m>b?-1:m<b?1:0:m>b?1:m<b?-1:0}),N=L.sort(function(R,_){var m=new Date(R.modifiedDate),b=new Date(_.modifiedDate);return"dateDescending"===H?m>b?-1:m<b?1:0:m>b?1:m<b?-1:0});this.plugin.setPluginState(l({},S,{files:K,folders:N,sorting:"dateDescending"===H?"dateAscending":"dateDescending"}))},F.sortBySize=function(){var S=l({},this.plugin.getPluginState()),x=S.files,L=S.sorting;if(x.length&&this.plugin.getItemData(x[0]).size){var H=x.sort(function(K,N){var R=K.size,_=N.size;return"sizeDescending"===L?R>_?-1:R<_?1:0:R>_?1:R<_?-1:0});this.plugin.setPluginState(l({},S,{files:H,sorting:"sizeDescending"===L?"sizeAscending":"sizeDescending"}))}},F.addFolder=function(S){var x=this,L=this.providerFileToId(S),K=l({},this.plugin.getPluginState().selectedFolders);if(!(L in K)||!K[L].loading)return K[L]={loading:!0,files:[]},this.plugin.setPluginState({selectedFolders:l({},K)}),this.listAllFiles(S.requestPath).then(function(N){var R=0;N.forEach(function(b){x.addFile(b)&&R++});var m,_=N.map(x.providerFileToId);K[L]={loading:!1,files:_},x.plugin.setPluginState({selectedFolders:K}),m=N.length?x.plugin.uppy.i18n("folderAdded",{smart_count:R,folder:S.name}):x.plugin.uppy.i18n("emptyFolderAdded"),x.plugin.uppy.info(m)}).catch(function(N){var _=l({},x.plugin.getPluginState().selectedFolders);delete _[L],x.plugin.setPluginState({selectedFolders:_}),x.handleError(N)})},F.providerFileToId=function(S){return i({data:S,name:S.name||S.id,type:S.mimeType})},F.handleAuth=function(){var S=this,x=btoa(JSON.stringify({origin:"origin"in location?location.origin:location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")})),L="@uppy/provider-views="+U.VERSION,H=this.provider.authUrl({state:x,uppyVersions:L}),K=window.open(H,"_blank");window.addEventListener("message",function R(_){if(S._isOriginAllowed(_.origin,S.plugin.opts.companionAllowedHosts)&&_.source===K){var m="string"==typeof _.data?JSON.parse(_.data):_.data;m.token?(K.close(),window.removeEventListener("message",R),S.provider.setAuthToken(m.token),S.preFirstRender()):S.plugin.uppy.log("did not receive token from auth window")}else S.plugin.uppy.log("rejecting event from "+_.origin+" vs allowed pattern "+S.plugin.opts.companionAllowedHosts)})},F._isOriginAllowed=function(S,x){var L=function(N){return"string"==typeof N?new RegExp("^"+N+"$"):N instanceof RegExp?N:void 0};return(Array.isArray(x)?x.map(L):[L(x)]).filter(function(K){return null!=K}).some(function(K){return K.test(S)||K.test(S+"/")})},F.handleError=function(S){var x=this.plugin.uppy;if(x.log(S.toString()),!S.isAuthError){var L=x.i18n("companionError");x.info({message:L,details:S.toString()},"error",5e3)}},F.handleScroll=function(S){var x=this,L=S.target.scrollHeight-(S.target.scrollTop+S.target.offsetHeight),H=this.nextPagePath||null;L<50&&H&&!this._isHandlingScroll&&(this.provider.list(H).then(function(K){var N=x.plugin.getPluginState(),R=N.files,_=N.folders;x._updateFilesAndFolders(K,R,_)}
1).catch(this.handleError).then(function(){x._isHandlingScroll=!1}),this._isHandlingScroll=!0)},F.listAllFiles=function(S,x){var L=this;return void 0===x&&(x=null),x=x||[],new Promise(function(H,K){L.provider.list(S).then(function(N){N.items.forEach(function(_){_.isFolder?L.addFolder(_):x.push(_)});var R=N.nextPagePath||null;return R?L.listAllFiles(R,x).then(function(_){return H(_)}).catch(function(_){return K(_)}):H(x)}).catch(function(N){return K(N)})})},F.donePicking=function(){var S=this,H=this.plugin.getPluginState().currentSelection.map(function(K){return K.isFolder?S.addFolder(K):S.addFile(K)});this._sharedHandler.loaderWrapper(Promise.all(H),function(){S.clearSelection()},function(){})},F.cancelPicking=function(){this.clearSelection();var S=this.plugin.uppy.getPlugin("Dashboard");S&&S.hideAllPanels()},F.clearSelection=function(){this.plugin.setPluginState({currentSelection:[]})},F.render=function(S,x){void 0===x&&(x={});var L=this.plugin.getPluginState(),H=L.authenticated;if(L.didFirstRender||this.preFirstRender(),this.plugin.getPluginState().loading)return d(A,{onUnmount:this.clearSelection},d(h,{i18n:this.plugin.uppy.i18n}));if(!H)return d(A,{onUnmount:this.clearSelection},d(u,{pluginName:this.plugin.title,pluginIcon:this.plugin.icon,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18n,i18nArray:this.plugin.uppy.i18nArray}));var N=l({},this.opts,x),R={showBreadcrumbs:N.showBreadcrumbs,getFolder:this.getFolder,directories:this.plugin.getPluginState().directories,pluginIcon:this.plugin.icon,title:this.plugin.title,logout:this.logout,username:this.username,i18n:this.plugin.uppy.i18n},_=l({},this.plugin.getPluginState(),{username:this.username,getNextFolder:this.getNextFolder,getFolder:this.getFolder,filterItems:this._sharedHandler.filterItems,filterQuery:this.filterQuery,sortByTitle:this.sortByTitle,sortByDate:this.sortByDate,logout:this.logout,isChecked:this._sharedHandler.isChecked,toggleCheckbox:this._sharedHandler.toggleCheckbox,handleScroll:this.handleScroll,listAllFiles:this.listAllFiles,done:this.donePicking,cancel:this.cancelPicking,headerComponent:c(R),title:this.plugin.title,viewType:N.viewType,showTitles:N.showTitles,showFilter:N.showFilter,showBreadcrumbs:N.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:this.plugin.uppy.validateRestrictions});return d(A,{onUnmount:this.clearSelection},d(t,_))},U}(),o.VERSION="1.12.3",n)},29448:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return[n("span",{className:"uppy-ProviderBrowser-user",key:"username"},l.username),n("button",{type:"button",onClick:l.logout,className:"uppy-u-reset uppy-ProviderBrowser-userLogout",key:"logout"},l.i18n("logOut"))]}},71480:(O,v,e)=>{O.exports=e(76094)},48176:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("button",{type:"button",onClick:l.triggerSearchInput,className:"uppy-u-reset uppy-ProviderBrowser-userLogout"},l.i18n("backToSearch"))}},80065:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){var a,u=function(){a.value&&l.search(a.value)};return n("div",{className:"uppy-SearchProvider"},n("input",{className:"uppy-u-reset uppy-c-textInput uppy-SearchProvider-input",type:"text","aria-label":l.i18n("enterTextToSearch"),placeholder:l.i18n("enterTextToSearch"),onKeyUp:function(t){13===t.keyCode&&u()},ref:function(t){a=t},"data-uppy-super-focusable":!0}),n("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-SearchProvider-searchButton",type:"button",onClick:u},l.i18n("searchImages")))}},36941:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(A){for(var w=1;w<arguments.length;w++){var U=arguments[w];for(var F in U)Object.prototype.hasOwnProperty.call(U,F)&&(A[F]=U[F])}return A},l.apply(this,arguments)}var d=e(79606).h,u=e(80065),c=e(65937),t=e(70101),h=e(30784),i=e(13417),s=e(18050),r=e(48176),f=e(31035),g=e(20850);O.exports=(n=o=function(){function A(U,F){this.plugin=U,this.provider=F.provider,this._sharedHandler=new f(U);this.opts=l({}
1,{viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1},F),this.search=this.search.bind(this),this.triggerSearchInput=this.triggerSearchInput.bind(this),this.addFile=this.addFile.bind(this),this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.cancelPicking=this.cancelPicking.bind(this),this.clearSelection=this.clearSelection.bind(this),this.render=this.render.bind(this),this.clearSelection(),this.plugin.setPluginState({isInputMode:!0,files:[],folders:[],directories:[],filterInput:"",isSearchVisible:!1})}var w=A.prototype;return w.tearDown=function(){},w._updateFilesAndInputMode=function(F,y){this.nextPageQuery=F.nextPageQuery,this._searchTerm=F.searchedFor,F.items.forEach(function(S){y.push(S)}),this.plugin.setPluginState({isInputMode:!1,files:y})},w.preFirstRender=function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},w.search=function(F){var y=this;if(!F||F!==this._searchTerm)return this._sharedHandler.loaderWrapper(this.provider.search(F),function(S){y._updateFilesAndInputMode(S,[])},this.handleError);this.plugin.setPluginState({isInputMode:!1})},w.triggerSearchInput=function(){this.plugin.setPluginState({isInputMode:!0})},w.addFile=function(F){var y={id:this.providerFileToId(F),source:this.plugin.id,data:F,name:F.name||F.id,type:F.mimeType,isRemote:!0,body:{fileId:F.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:""+this.provider.fileUrl(F.requestPath),body:{fileId:F.id},providerOptions:l({},this.provider.opts,{provider:null})}},S=i(y);S&&s(S)&&(y.preview=F.thumbnail),this.plugin.uppy.log("Adding remote file");try{this.plugin.uppy.addFile(y)}catch(x){x.isRestriction||this.plugin.uppy.log(x)}},w.providerFileToId=function(F){return h({data:F,name:F.name||F.id,type:F.mimeType})},w.handleError=function(F){var y=this.plugin.uppy;y.log(F.toString());var S=y.i18n("companionError");y.info({message:S,details:F.toString()},"error",5e3)},w.handleScroll=function(F){var y=this,S=F.target.scrollHeight-(F.target.scrollTop+F.target.offsetHeight),x=this.nextPageQuery||null;S<50&&x&&!this._isHandlingScroll&&(this.provider.search(this._searchTerm,x).then(function(L){var K=y.plugin.getPluginState().files;y._updateFilesAndInputMode(L,K)}).catch(this.handleError).then(function(){y._isHandlingScroll=!1}),this._isHandlingScroll=!0)},w.donePicking=function(){var F=this,x=this.plugin.getPluginState().currentSelection.map(function(L){return F.addFile(L)});this._sharedHandler.loaderWrapper(Promise.all(x),function(){F.clearSelection()},function(){})},w.cancelPicking=function(){this.clearSelection();var F=this.plugin.uppy.getPlugin("Dashboard");F&&F.hideAllPanels()},w.clearSelection=function(){this.plugin.setPluginState({currentSelection:[]})},w.render=function(F,y){void 0===y&&(y={});var S=this.plugin.getPluginState(),x=S.didFirstRender,L=S.isInputMode;if(x||this.preFirstRender(),this.plugin.getPluginState().loading)return d(g,{onUnmount:this.clearSelection},d(t,{i18n:this.plugin.uppy.i18n}));if(L)return d(g,{onUnmount:this.clearSelection},d(u,{search:this.search,i18n:this.plugin.uppy.i18n}));var H=l({},this.opts,y),K=l({},this.plugin.getPluginState(),{isChecked:this._sharedHandler.isChecked,toggleCheckbox:this._sharedHandler.toggleCheckbox,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:r({triggerSearchInput:this.triggerSearchInput,i18n:this.plugin.uppy.i18n}),title:this.plugin.title,viewType:H.viewType,showTitles:H.showTitles,showFilter:H.showFilter,showBreadcrumbs:H.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:this.plugin.uppy.validateRestrictions});return d(g,{onUnmount:this.clearSelection},d(c,K))},A}(),o.VERSION="1.12.3",n)},10122:(O,v,e)=>{O.exports=e(36941)},31035:(O,v,e)=>{var o=e(98449);O.exports=function(){function n(a){this.plugin=a,this.filterItems=this.filterItems.bind(this),this.toggleCheckbox=this.toggleCheckbox.bind(this),this.isChecked=this.isChecked.bind(this),this.loaderWrapper=this.loaderWrapper.bind(this)}var l=n.prototype;return l.filterItems=function(d){var u=this.plugin.getPluginState();return u.filterInput&&""!==u.filterInput?d.filter(function(c){return-1!==c.name.toLowerCase().indexOf(u.filterInput.toLowerCase())}):d},l.toggleCheckbox=function(d,u){var c=this;
1d.stopPropagation(),d.preventDefault(),d.currentTarget.focus();var t=this.plugin.getPluginState(),h=t.folders,i=t.files,s=this.filterItems(h.concat(i));if(this.lastCheckbox&&d.shiftKey){var r,f=s.indexOf(this.lastCheckbox),g=s.indexOf(u);return r=(r=f<g?s.slice(f,g+1):s.slice(g,f+1)).reduce(function(U,F){var y=c.plugin.uppy,S=y.validateRestrictions(o(F),[].concat(y.getFiles(),U));return S.result?[].concat(U,[F]):(y.info({message:S.reason},"error",y.opts.infoTimeout),U)}),void this.plugin.setPluginState({currentSelection:r})}this.lastCheckbox=u;var w=this.plugin.getPluginState().currentSelection;this.isChecked(u)?this.plugin.setPluginState({currentSelection:w.filter(function(U){return U.id!==u.id})}):this.plugin.setPluginState({currentSelection:w.concat([u])})},l.isChecked=function(d){return this.plugin.getPluginState().currentSelection.some(function(t){return t.id===d.id})},l.loaderWrapper=function(d,u,c){var t=this;d.then(function(h){t.plugin.setPluginState({loading:!1}),u(h)}).catch(function(h){t.plugin.setPluginState({loading:!1}),c(h)}),this.plugin.setPluginState({loading:!0})},n}()},47214:(O,v,e)=>{var o=e(71480),n=e(10122);O.exports={ProviderViews:o,SearchProviderViews:n}},8102:(O,v,e)=>{function o(){return o=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var g=arguments[f];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(r[A]=g[A])}return r},o.apply(this,arguments)}function l(r,f){return(l=Object.setPrototypeOf||function(A,w){return A.__proto__=w,A})(r,f)}var a=e(79606),d=a.h,u=a.Component,c=e(77468),t=e(83987),h=e(16894),i=e(68869),s=function(r){function f(){return r.apply(this,arguments)||this}!function(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,l(r,f)}(f,r);var g=f.prototype;return g.componentWillUnmount=function(){this.props.onStop()},g.render=function(){var w=this,U=this.props,F=U.recording,y=U.stream,S=U.recordedVideo,x={playsinline:!0};return(F||!S&&!F)&&(x.muted=!0,x.autoplay=!0,x.srcObject=y),S&&!F&&(x.muted=!1,x.controls=!0,x.src=S,this.videoElement&&(this.videoElement.srcObject=void 0)),d("div",{className:"uppy uppy-ScreenCapture-container"},d("div",{className:"uppy-ScreenCapture-videoContainer"},d(i,this.props),d("video",o({ref:function(H){return w.videoElement=H},className:"uppy-ScreenCapture-video"},x)),d(h,this.props)),d("div",{className:"uppy-ScreenCapture-buttonContainer"},d(c,this.props),d(t,this.props)))},f}(u);O.exports=s},77468:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){var d=a.recording,u=a.onStartRecording,c=a.onStopRecording,t=a.i18n;return d?n("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video uppy-ScreenCapture-button--stop-rec",type:"button",title:t("stopCapturing"),"aria-label":t("stopCapturing"),onClick:c,"data-uppy-super-focusable":!0},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},n("rect",{x:"15",y:"15",width:"70",height:"70"}))):n("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--video",type:"button",title:t("startCapturing"),"aria-label":t("startCapturing"),onClick:u,"data-uppy-super-focusable":!0},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},n("circle",{cx:"50",cy:"50",r:"40"})))}},61713:(O,v,e)=>{var n=e(79606).h;O.exports=function(){return n("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},n("g",{fill:"none",fillRule:"evenodd"},n("rect",{className:"uppy-ProviderIconBg",fill:"#2C3E50",width:"32",height:"32",rx:"16"}),n("path",{d:"M24.182 9H7.818C6.81 9 6 9.742 6 10.667v10c0 .916.81 1.666 1.818 1.666h4.546V24h7.272v-1.667h4.546c1 0 1.809-.75 1.809-1.666l.009-10C26 9.742 25.182 9 24.182 9zM24 21H8V11h16v10z",fill:"#FFF",fillRule:"nonzero"}),n("circle",{fill:"#FFF",cx:"16",cy:"16",r:"2"})))}},16894:(O,v,e)=>{function o(){return o=Object.assign||function(t){for(var h=1;h<arguments.length;h++){var i=arguments[h];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},o.apply(this,arguments)}function l(t,h){return(l=Object.setPrototypeOf||function(s,r){return s.__proto__=r,s})(t,h)}var a=e(79606),d=a.h,c=function(t){function h(s){var r;return(r=t.call(this,s)||this).state={elapsedTime:0},r.wrapperStyle={width:"100%",height:"100%",display:"flex"},r.overlayStyle={position:"absolute",width:"100%",height:"100%",background:"black",opacity:.7},r.infoContainerStyle={marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto",zIndex:1,color:"white"},r.infotextStyle={marginLeft:"auto",marginRight:"auto",marginBottom:"1rem",fontSize:"1.5rem"},r.timeStyle={display:"block",fontWeight:"bold",marginLeft:"auto",marginRight:"auto",fontSize:"3rem",fontFamily:"Courier New"},r}!function(t,h){t.prototype=Object.create(h.prototype),t.prototype.constructor=t,l(t,h)}(h,t);var i=h.prototype;return i.startTimer=function(){this.timerTick(),this.timerRunning=!0},i.resetTimer=function(){clearTimeout(this.timer),this.setState({elapsedTime:0}),this.timerRunning=!1},i.timerTick=function(){var r=this;this.timer=setTimeout(function(){r.setState({elapsedTime:r.state.elapsedTime+1}),r.timerTick()},1e3)},i.fmtMSS=function(r){return(r-(r%=60))/60+(r>9?":":":0")+r},i.render=function(){var r=o({},this.props),f=r.recording,g=r.i18n,A=this.fmtMSS(this.state.elapsedTime);return f&&!this.timerRunning&&this.startTimer(),!f&&this.timerRunning&&this.resetTimer(),f?d("div",{style:this.wrapperStyle},d("div",{style:this.overlayStyle}),d("div",{style:this.infoContainerStyle},d("div",{style:this.infotextStyle},g("recording")),d("div",{style:this.timeStyle},A))):null},h}(a.Component);O.exports=c},68869:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){var a=l.streamActive,d=l.i18n;return a?n("div",{title:d("streamActive"),"aria-label":d("streamActive"),className:"uppy-ScreenCapture-icon--stream uppy-ScreenCapture-icon--streamA
1ctive"},n("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),n("path",{d:"M0 0h24v24H0z",fill:"none"}),n("path",{d:"M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))):n("div",{title:d("streamPassive"),"aria-label":d("streamPassive"),className:"uppy-ScreenCapture-icon--stream"},n("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24"},n("path",{d:"M0 0h24v24H0z",opacity:".1",fill:"none"}),n("path",{d:"M0 0h24v24H0z",fill:"none"}),n("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z"})))}},83987:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){var d=a.recording,u=a.recordedVideo,c=a.onSubmit,t=a.i18n;return u&&!d?n("button",{className:"uppy-u-reset uppy-c-btn uppy-ScreenCapture-button uppy-ScreenCapture-button--submit",type:"button",title:t("submitRecordedFile"),"aria-label":t("submitRecordedFile"),onClick:c,"data-uppy-super-focusable":!0},n("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},n("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"}))):null}},19811:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(w){for(var U=1;U<arguments.length;U++){var F=arguments[U];for(var y in F)Object.prototype.hasOwnProperty.call(F,y)&&(w[y]=F[y])}return w},l.apply(this,arguments)}function a(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function u(w,U){return(u=Object.setPrototypeOf||function(y,S){return y.__proto__=S,y})(w,U)}var t=e(79606).h,i=e(79684).Plugin,s=e(30831),r=e(7173),f=e(61713),g=e(8102);O.exports=(n=o=function(w){function U(y,S){var x;(x=w.call(this,y,S)||this).mediaDevices=navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia&&window&&window.MediaRecorder?navigator.mediaDevices:null,x.protocol=location.protocol.match(/https/i)?"https":"http",x.id=x.opts.id||"ScreenCapture",x.title=x.opts.title||"Screencast",x.type="acquirer",x.icon=f,x.defaultLocale={strings:{startCapturing:"Begin screen capturing",stopCapturing:"Stop screen capturing",submitRecordedFile:"Submit recorded file",streamActive:"Stream active",streamPassive:"Stream passive",micDisabled:"Microphone access denied by user",recording:"Recording"}};return x.opts=l({},{displayMediaConstraints:{video:{width:1280,height:720,frameRate:{ideal:3,max:5},cursor:"motion",displaySurface:"monitor"}},userMediaConstraints:{audio:!0},preferredVideoMimeType:"video/webm"},S),x.translator=new s([x.defaultLocale,x.uppy.locale,x.opts.locale]),x.i18n=x.translator.translate.bind(x.translator),x.i18nArray=x.translator.translateArray.bind(x.translator),x.install=x.install.bind(a(x)),x.setPluginState=x.setPluginState.bind(a(x)),x.render=x.render.bind(a(x)),x.start=x.start.bind(a(x)),x.stop=x.stop.bind(a(x)),x.startRecording=x.startRecording.bind(a(x)),x.stopRecording=x.stopRecording.bind(a(x)),x.submit=x.submit.bind(a(x)),x.streamInterrupted=x.streamInactivated.bind(a(x)),x.captureActive=!1,x.capturedMediaFile=null,x}!function(w,U){w.prototype=Object.create(U.prototype),w.prototype.constructor=w,u(w,U)}(U,w);var F=U.prototype;return F.install=function(){if(!this.mediaDevices)return this.up
1py.log("Screen recorder access is not supported","error"),null;this.setPluginState({streamActive:!1,audioStreamActive:!1});var S=this.opts.target;S&&this.mount(S,this)},F.uninstall=function(){this.videoStream&&this.stop(),this.unmount()},F.start=function(){var S=this;if(!this.mediaDevices)return Promise.reject(new Error("Screen recorder access not supported"));this.captureActive=!0,this.selectAudioStreamSource(),this.selectVideoStreamSource().then(function(x){!1===x&&S.parent&&S.parent.hideAllPanels&&(S.parent.hideAllPanels(),S.captureActive=!1)})},F.selectVideoStreamSource=function(){var S=this;return this.videoStream?new Promise(function(x){return x(S.videoStream)}):this.mediaDevices.getDisplayMedia(this.opts.displayMediaConstraints).then(function(x){return S.videoStream=x,S.videoStream.addEventListener("inactive",function(L){S.streamInactivated()}),S.setPluginState({streamActive:!0}),x}).catch(function(x){return S.setPluginState({screenRecError:x}),S.userDenied=!0,setTimeout(function(){S.userDenied=!1},1e3),!1})},F.selectAudioStreamSource=function(){var S=this;return this.audioStream?new Promise(function(x){return x(S.audioStream)}):this.mediaDevices.getUserMedia(this.opts.userMediaConstraints).then(function(x){return S.audioStream=x,S.setPluginState({audioStreamActive:!0}),x}).catch(function(x){return"NotAllowedError"===x.name&&S.uppy.info(S.i18n("micDisabled"),"error",5e3),!1})},F.startRecording=function(){var S=this,x={};this.capturedMediaFile=null,this.recordingChunks=[];var L=this.opts.preferredVideoMimeType;this.selectVideoStreamSource().then(function(H){L&&MediaRecorder.isTypeSupported(L)&&r(L)&&(x.mimeType=L);var K=[H.getVideoTracks()[0]];S.audioStream&&K.push(S.audioStream.getAudioTracks()[0]),S.outputStream=new MediaStream(K),S.recorder=new MediaRecorder(S.outputStream,x),S.recorder.addEventListener("dataavailable",function(N){S.recordingChunks.push(N.data)}),S.recorder.start(),S.setPluginState({recording:!0})}).catch(function(H){S.uppy.log(H,"error")})},F.streamInactivated=function(){var S=l({},this.getPluginState()),x=S.recordedVideo,L=S.recording;x||L?L&&(this.uppy.log("Capture stream inactive \u2014 stop recording"),this.stopRecording()):this.parent&&this.parent.hideAllPanels&&this.parent.hideAllPanels(),this.videoStream=null,this.audioStream=null,this.setPluginState({streamActive:!1,audioStreamActive:!1})},F.stopRecording=function(){var S=this;return new Promise(function(L,H){S.recorder.addEventListener("stop",function(){L()}),S.recorder.stop()}).then(function(){return S.setPluginState({recording:!1}),S.getVideo()}).then(function(L){S.capturedMediaFile=L,S.setPluginState({recordedVideo:URL.createObjectURL(L.data)})}).then(function(){S.recordingChunks=null,S.recorder=null},function(L){throw S.recordingChunks=null,S.recorder=null,L})},F.submit=function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(S){S.isRestriction||this.uppy.log(S,"error")}},F.stop=function(){this.videoStream&&(this.videoStream.getVideoTracks().forEach(function(S){S.stop()}),this.videoStream.getAudioTracks().forEach(function(S){S.stop()}),this.videoStream=null),this.audioStream&&(this.audioStream.getAudioTracks().forEach(function(S){S.stop()}),this.audioStream.getVideoTracks().forEach(function(S){S.stop()}),this.audioStream=null),this.outputStream&&(this.outputStream.getAudioTracks().forEach(function(S){S.stop()}),this.outputStream.getVideoTracks().forEach(function(S){S.stop()}),this.outputStream=null),this.setPluginState({recordedVideo:null}),this.captureActive=!1},F.getVideo=function(){var S=this.recordingChunks[0].type,x=r(S);if(!x)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'+S+'"'));var L="screencap-"+Date.now()+"."+x,H=new Blob(this.recordingChunks,{type:S}),K={source:this.id,name:L,data:new Blob([H],{type:S}),type:S};return Promise.resolve(K)},F.render=function(S){var x=this.getPluginState();return!x.streamActive&&!this.captureActive&&!this.userDenied&&this.start(),t(g,l({},x,{onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onStop:this.stop,onSubmit:this.submit,i18n:this.i18n,stream:this.videoStream}))},U}(i),o.VERSION="1.1.0",n)},48592:(O,v,e)=>{function o(){return o=Object.assign||function(_){for(var m=1;m<arguments.length;m++){var b=arguments[m];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(_[C]=b[C])}return _},o.apply(this,arguments)}var n=e(6123),l=e(82885),a=e(89863),d=e(83726),u=e(13911),t=e(79606).h;O.exports=function(_){var he,ve,m=_=_||{},b=m.newFiles,C=m.allowNewUpload,D=m.isUploadInProgress,I=m.isAllPaused,P=m.resumableUploads,B=m.error,p=m.hideUploadButton,Y=m.hidePauseResumeButton,j=m.hideCancelButton,ee=m.hideRetryButton,ne=m.recoveredState,se=_.uploadState,le=_.totalProgress;if(se===a.STATE_PREPROCESSING||se===a.STATE_POSTPROCESSING){var z=function(_){var m=[];Object.keys(_).forEach(function(B){var p=_[B].progress;p.preprocess&&m.push(p.preprocess),p.postprocess&&m.push(p.postprocess)});var b=m[0];return{mode:b.mode,message:b.message,value:m.filter(function(B){return"determinate"===B.mode}).reduce(function(B,p,Y,j){return B+p.value/j.length},0)}}(_.files);"determinate"===(he=z.mode)&&(le=100*z.value),ve=F(z)}else se===a.STATE_COMPLETE?ve=N(_):se===a.STATE_UPLOADING?(_.supportsUploadProgress||(he="indeterminate",le=null),ve=K(_)):se===a.STATE_ERROR&&(le=void 0,ve=R(_));var te="number"==typeof le?le:100,me=se===a.STATE_WAITING&&_.hideUploadButton||se===a.STATE_WAITING&&!_.newFiles>0||se===a.STATE_COMPLETE&&_.hideAfterFinish,ce=!B&&b&&!D&&!I&&C&&!p;ne&&(me=!1,ce=!0);var we=!j&&se!==a.STATE_WAITING&&se!==a.STATE_COMPLETE,Fe=P&&!Y&&se===a.STATE_UPLOADING,Oe=B&&!ee,Ne=_.doneButtonHandler&&se===a.STATE_COMPLETE,Ce="uppy-StatusBar-progress\n "+(he?"is-"+he:""),Ee=l({"uppy-Root":_.isTargetDOMEl},"uppy-StatusBar","is-"+se,{"has-ghosts":_.isSomeGhost});return t("div",{className:Ee,"aria-hidden":me},t("div",{className:Ce,style:{width:te+"%"}
1,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":le}),ve,t("div",{className:"uppy-StatusBar-actions"},ce?t(r,o({},_,{uploadState:se})):null,Oe?t(f,_):null,Fe?t(A,_):null,we?t(g,_):null,Ne?t(w,_):null))};var r=function(m){var b=l("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":m.uploadState===a.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":m.isSomeGhost}),C=m.newFiles&&m.isUploadStarted&&!m.recoveredState?m.i18n("uploadXNewFiles",{smart_count:m.newFiles}):m.i18n("uploadXFiles",{smart_count:m.newFiles});return t("button",{type:"button",className:b,"aria-label":m.i18n("uploadXFiles",{smart_count:m.newFiles}),onClick:m.startUpload,disabled:m.isSomeGhost,"data-uppy-super-focusable":!0},C)},f=function(m){return t("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":m.i18n("retryUpload"),onClick:m.retryAll,"data-uppy-super-focusable":!0},t("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},t("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),m.i18n("retry"))},g=function(m){return t("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:m.i18n("cancel"),"aria-label":m.i18n("cancel"),onClick:m.cancelAll,"data-uppy-super-focusable":!0},t("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},t("g",{fill:"none",fillRule:"evenodd"},t("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),t("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},A=function(m){var b=m.isAllPaused,D=(0,m.i18n)(b?"resume":"pause");return t("button",{title:D,"aria-label":D,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return function(_){if(!_.isAllComplete)return _.resumableUploads?_.isAllPaused?_.resumeAll():_.pauseAll():_.cancelAll()}(m)},"data-uppy-super-focusable":!0},t("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},t("g",{fill:"none",fillRule:"evenodd"},t("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),t("path",b?{fill:"#FFF",d:"M6 4.25L11.5 8 6 11.75z"}:{d:"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z",fill:"#FFF"}))))},w=function(m){var b=m.i18n;return t("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:m.doneButtonHandler,"data-uppy-super-focusable":!0},b("done"))},U=function(){return t("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},t("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))},F=function(m){var b=Math.round(100*m.value);return t("div",{className:"uppy-StatusBar-content"},t(U,null),"determinate"===m.mode?b+"% \xb7 ":"",m.message)},x=function(m){return t("div",{className:"uppy-StatusBar-statusSecondary"},m.i18n("filesUploadedOfTotal",{complete:m.complete,smart_count:m.numUploads}))},L=function(m){var b=l("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return t("div",{className:"uppy-StatusBar-statusSecondary"},t("div",{className:"uppy-StatusBar-statusSecondaryHint"},m.i18n("xMoreFilesAdded",{smart_count:m.newFiles})),t("button",{type:"button",className:b,"aria-label":m.i18n("uploadXFiles",{smart_count:m.newFiles}),onClick:m.startUpload},m.i18n("upload")))},H=n(function(m){var b=m.numUploads>1;return t("div",{className:"uppy-StatusBar-statusSecondary"},b&&m.i18n("filesUploadedOfTotal",{complete:m.complete,smart_count:m.numUploads}),t("span",{className:"uppy-StatusBar-additionalInfo"},b&&" \xb7 ",m.i18n("dataUploadedOfTotal",{complete:d(m.totalUploadedSize),total:d(m.totalSize)})," \xb7 ",m.i18n("xTimeLeft",{time:u(m.totalETA)})))},500,{leading:!0,trailing:!0}),K=function(m){if(!m.isUploadStarted||m.isAllComplete)return null;var b=m.isAllPaused?m.i18n("paused"):m.i18n("uploading"),C=m.newFiles&&m.isUploadStarted;return t("div",{className:"uppy-StatusBar-content","aria-label":b,title:b},m.isAllPaused?null:t(U,null),t("div",{className:"uppy-StatusBar-status"},t("div",{className:"uppy-StatusBar-statusPrimary"}
1,m.supportsUploadProgress?b+": "+m.totalProgress+"%":b),m.isAllPaused||C||!m.showProgressDetails?null:m.supportsUploadProgress?t(H,m):t(x,m),C?t(L,m):null))},N=function(m){m.totalProgress;var C=m.i18n;return t("div",{className:"uppy-StatusBar-content",role:"status",title:C("complete")},t("div",{className:"uppy-StatusBar-status"},t("div",{className:"uppy-StatusBar-statusPrimary"},t("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},t("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),C("complete"))))},R=function(m){var b=m.error,I=(m.retryAll,m.hideRetryButton,m.i18n);return t("div",{className:"uppy-StatusBar-content",role:"alert",title:I("uploadFailed")},t("div",{className:"uppy-StatusBar-status"},t("div",{className:"uppy-StatusBar-statusPrimary"},t("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},t("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),I("uploadFailed"))),t("span",{className:"uppy-StatusBar-details","aria-label":b,"data-microtip-position":"top-right","data-microtip-size":"medium",role:"tooltip",onClick:function(){var B=I("uploadFailed")+" \n\n "+b;alert(B)}},"?"))}},89863:O=>{O.exports={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"}},79340:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(A){for(var w=1;w<arguments.length;w++){var U=arguments[w];for(var F in U)Object.prototype.hasOwnProperty.call(U,F)&&(A[F]=U[F])}return A},l.apply(this,arguments)}function a(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function u(A,w){return(u=Object.setPrototypeOf||function(F,y){return F.__proto__=y,F})(A,w)}var t=e(79684).Plugin,h=e(30831),i=e(48592),s=e(89863),r=e(82638),f=e(8020),g=e(55972);O.exports=(n=o=function(A){function w(F,y){var S;(S=A.call(this,F,y)||this).startUpload=function(){if(!S.uppy.getState().recoveredState)return S.uppy.upload().catch(function(){});S.uppy.emit("restore-confirmed")},S.id=S.opts.id||"StatusBar",S.title="StatusBar",S.type="progressindicator",S.defaultLocale={strings:{uploading:"Uploading",upload:"Upload",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",retryUpload:"Retry upload",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"}}};return S.opts=l({},{target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null},y),S.i18nInit(),S.render=S.render.bind(a(S)),S.install=S.install.bind(a(S)),S}!function(A,w){A.prototype=Object.create(w.prototype),A.prototype.constructor=A,u(A,w)}(w,A);var U=w.prototype;return U.setOptions=function(y){A.prototype.setOptions.call(this,y),this.i18nInit()},U.i18nInit=function(){this.translator=new h([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},U.getTotalSpeed=function(y){var S=0;return y.forEach(function(x){S+=r(x.progress)}),S},U.getTotalETA=function(y){var S=this.getTotalSpeed(y);if(0===S)return 0;var x=y.reduce(function(L,H){return L+f(H.progress)},0);return Math.round(x/S*10)/10},U.getUploadingState=function(y,S,x,L){if(y)return s.STATE_ERROR;if(S)return s.STATE_COMPLETE;if(x)return s.STATE_WAITING;for(var H=s.STATE_WAITING,K=Object.keys(L),N=0;N<K.length;N++){var R=L[K[N]].progress;if(R.uploadStarted&&!R.uploadComplete)return s.STATE_UPLOADING;R.preprocess&&H!==s.STATE_UPLOADING&&(H=s.STATE_PREPROCESSING),R.postprocess&&H!==s.STATE_UPLOADING&&H!==s.STATE_PREPROCESSING&&(H=s.STATE_POSTPROCESSING)}return H},U.render=function(y){var S=y.capabilities,x=y.files,L=y.allowNewUpload,H=y.totalProgress,K=y.error,N=y.recoveredState,R=Object.keys(x).map(function(ce){return x[ce]}),_=R.filter(function(ce){return!ce.progress.uploadStarted&&!ce.progress.preprocess&&!ce.progress.postprocess}
1);N&&(_=R);var b=R.filter(function(ce){return ce.progress.uploadStarted}).filter(function(ce){return ce.isPaused}),C=R.filter(function(ce){return ce.progress.uploadComplete}),D=R.filter(function(ce){return ce.error}),I=R.filter(function(ce){return!ce.progress.uploadComplete&&ce.progress.uploadStarted}),P=I.filter(function(ce){return!ce.isPaused}),B=R.filter(function(ce){return ce.progress.uploadStarted||ce.progress.preprocess||ce.progress.postprocess}),p=R.filter(function(ce){return ce.progress.preprocess||ce.progress.postprocess}),Y=this.getTotalETA(P),j=0,ee=0;B.forEach(function(ce){j+=ce.progress.bytesTotal||0,ee+=ce.progress.bytesUploaded||0});var ne=B.length>0,se=100===H&&C.length===Object.keys(x).length&&0===p.length,le=K&&D.length===R.length,he=0!==I.length&&b.length===I.length,ve=I.length>0,z=S.resumableUploads||!1,te=!1!==S.uploadProgress,me=R.some(function(ce){return ce.isGhost});return i({error:K,uploadState:this.getUploadingState(le,se,N,y.files||{}),allowNewUpload:L,totalProgress:H,totalSize:j,totalUploadedSize:ee,isAllComplete:se,isAllPaused:he,isAllErrored:le,isUploadStarted:ne,isUploadInProgress:ve,isSomeGhost:me,recoveredState:N,complete:C.length,newFiles:_.length,numUploads:B.length,totalETA:Y,files:x,i18n:this.i18n,pauseAll:this.uppy.pauseAll,resumeAll:this.uppy.resumeAll,retryAll:this.uppy.retryAll,cancelAll:this.uppy.cancelAll,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:z,supportsUploadProgress:te,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})},U.onMount=function(){var y=this.el;g(y)||(y.dir="ltr")},U.install=function(){var y=this.opts.target;y&&this.mount(y,this)},U.uninstall=function(){this.unmount()},w}(t),o.VERSION="1.9.6",n)},15174:O=>{function v(){return v=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(o[a]=l[a])}return o},v.apply(this,arguments)}var e=function(){function o(){this.state={},this.callbacks=[]}var n=o.prototype;return n.getState=function(){return this.state},n.setState=function(a){var d=v({},this.state),u=v({},this.state,a);this.state=u,this._publish(d,u,a)},n.subscribe=function(a){var d=this;return this.callbacks.push(a),function(){d.callbacks.splice(d.callbacks.indexOf(a),1)}},n._publish=function(){for(var a=arguments.length,d=new Array(a),u=0;u<a;u++)d[u]=arguments[u];this.callbacks.forEach(function(c){c.apply(void 0,d)})},o}();e.VERSION="1.2.7",O.exports=function(){return new e}},13604:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(g){for(var A=1;A<arguments.length;A++){var w=arguments[A];for(var U in w)Object.prototype.hasOwnProperty.call(w,U)&&(g[U]=w[U])}return g},l.apply(this,arguments)}function d(g,A){return(d=Object.setPrototypeOf||function(U,F){return U.__proto__=F,U})(g,A)}var c=e(79684).Plugin,t=e(30831),h=e(16368),i=e(3573),s=e(18050),r=e(53781),f=e(80927);O.exports=(n=o=function(g){function A(U,F){var y;(y=g.call(this,U,F)||this).onFileAdded=function(x){!x.preview&&x.data&&s(x.type)&&!x.isRemote&&y.addToQueue(x.id)},y.onCancelRequest=function(x){var L=y.queue.indexOf(x.id);-1!==L&&y.queue.splice(L,1)},y.onFileRemoved=function(x){var L=y.queue.indexOf(x.id);-1!==L&&y.queue.splice(L,1),x.preview&&i(x.preview)&&URL.revokeObjectURL(x.preview)},y.onRestored=function(){y.uppy.getFiles().filter(function(L){return L.isRestored}).forEach(function(L){(!L.preview||i(L.preview))&&y.addToQueue(L.id)})},y.waitUntilAllProcessed=function(x){x.forEach(function(H){var K=y.uppy.getFile(H);y.uppy.emit("preprocess-progress",K,{mode:"indeterminate",message:y.i18n("generatingThumbnails")})});var L=function(){x.forEach(function(K){var N=y.uppy.getFile(K);y.uppy.emit("preprocess-complete",N)})};return new Promise(function(H,K){y.queueProcessing?y.uppy.once("thumbnail:all-generated",function(){L(),H()}):(L(),H())})},y.type="modifier",y.id=y.opts.id||"ThumbnailGenerator",y.title="Thumbn
1ail Generator",y.queue=[],y.queueProcessing=!1,y.defaultThumbnailDimension=200,y.thumbnailType=y.opts.thumbnailType||"image/jpeg",y.defaultLocale={strings:{generatingThumbnails:"Generating thumbnails..."}};if(y.opts=l({},{thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1},F),y.opts.lazy&&y.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.");return y.i18nInit(),y}!function(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,d(g,A)}(A,g);var w=A.prototype;return w.setOptions=function(F){g.prototype.setOptions.call(this,F),this.i18nInit()},w.i18nInit=function(){this.translator=new t([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},w.createThumbnail=function(F,y,S){var x=this,L=URL.createObjectURL(F.data),H=new Promise(function(N,R){var _=new Image;_.src=L,_.addEventListener("load",function(){URL.revokeObjectURL(L),N(_)}),_.addEventListener("error",function(m){URL.revokeObjectURL(L),R(m.error||new Error("Could not create thumbnail"))})}),K=f.rotation(F.data).catch(function(N){return 1});return Promise.all([H,K]).then(function(N){var R=N[0],_=N[1],m=x.getProportionalDimensions(R,y,S,_.deg),b=x.rotateImage(R,_),C=x.resizeImage(b,m.width,m.height);return x.canvasToBlob(C,x.thumbnailType,80)}).then(function(N){return URL.createObjectURL(N)})},w.getProportionalDimensions=function(F,y,S,x){var L=F.width/F.height;return(90===x||270===x)&&(L=F.height/F.width),null!=y?{width:y,height:Math.round(y/L)}:null!=S?{width:Math.round(S*L),height:S}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/L)}},w.protect=function(F){var y=F.width/F.height,S=5e6,x=4096,L=Math.floor(Math.sqrt(S*y)),H=Math.floor(S/Math.sqrt(S*y));if(L>x&&(L=x,H=Math.round(L/y)),H>x&&(H=x,L=Math.round(y*H)),F.width>L){var K=document.createElement("canvas");K.width=L,K.height=H,K.getContext("2d").drawImage(F,0,0,L,H),F=K}return F},w.resizeImage=function(F,y,S){F=this.protect(F);var x=Math.ceil(r(F.width/y));x<1&&(x=1);for(var L=y*Math.pow(2,x-1),H=S*Math.pow(2,x-1);x--;){var N=document.createElement("canvas");N.width=L,N.height=H,N.getContext("2d").drawImage(F,0,0,L,H),F=N,L=Math.round(L/2),H=Math.round(H/2)}return F},w.rotateImage=function(F,y){var S=F.width,x=F.height;(90===y.deg||270===y.deg)&&(S=F.height,x=F.width);var L=document.createElement("canvas");L.width=S,L.height=x;var H=L.getContext("2d");return H.translate(S/2,x/2),y.canvas&&(H.rotate(y.rad),H.scale(y.scaleX,y.scaleY)),H.drawImage(F,-F.width/2,-F.height/2,F.width,F.height),L},w.canvasToBlob=function(F,y,S){try{F.getContext("2d").getImageData(0,0,1,1)}catch(x){if(18===x.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return F.toBlob?new Promise(function(x){F.toBlob(x,y,S)}).then(function(x){if(null===x)throw new Error("cannot read image, probably an svg with external resources");return x}):Promise.resolve().then(function(){return h(F.toDataURL(y,S),{})}).then(function(x){if(null===x)throw new Error("could not extract blob, probably an old browser");return x})},w.setPreviewURL=function(F,y){this.uppy.setFileState(F,{preview:y})},w.addToQueue=function(F){this.queue.push(F),!1===this.queueProcessing&&this.processQueue()},w.processQueue=function(){var F=this;if(this.queueProcessing=!0,this.queue.length>0){var y=this.uppy.getFile(this.queue.shift());return y?this.requestThumbnail(y).catch(function(S){}).then(function(){return F.processQueue()}):void this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error")}this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated")},w.requestThumbnail=function(F){var y=this;return s(F.type)&&!F.isRemote?this.createThumbnail(F,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(function(S){y.setPreviewURL(F.id,S),y.uppy.log("[ThumbnailGenerator] Generated thumbnail for "+F.id),y.uppy.emit("thumbnail:generated",y.uppy.getFile(F.id),S)}).catch(function(S){y.uppy.log("[ThumbnailGenerator] Failed thumbnail for "+F.id+":","warning"),y.uppy.log(S,"warning"),y.uppy.emit("thumbnail:error",y.uppy.getFile(F.id),S)}):Promise.resolve()}
1,w.install=function(){this.uppy.on("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)},w.uninstall=function(){this.uppy.off("file-removed",this.onFileRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)},A}(c),o.VERSION="1.7.11",n)},53106:(O,v,e)=>{function o(){return o=Object.assign||function(F){for(var y=1;y<arguments.length;y++){var S=arguments[y];for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(F[x]=S[x])}return F},o.apply(this,arguments)}function l(F,y){return(l=Object.setPrototypeOf||function(x,L){return x.__proto__=L,x})(F,y)}var i,a=function(){return i||(i=e(49962)),i},d=e(65899),u=e(9684),c=e(15553),t=e(7246),h=e(29670);var f="ASSEMBLY_EXECUTING",g="ASSEMBLY_COMPLETED",A=["ASSEMBLY_UPLOADING",f,g];function w(F,y){return A.indexOf(F)>=A.indexOf(y)}var U=function(F){function y(x){var L;return(L=F.call(this)||this).status=x,L.socket=null,L.pollInterval=null,L.closed=!1,L}!function(F,y){F.prototype=Object.create(y.prototype),F.prototype.constructor=F,l(F,y)}(y,F);var S=y.prototype;return S.connect=function(){this._connectSocket(),this._beginPolling()},S._onFinished=function(){this.emit("finished"),this.close()},S._connectSocket=function(){var L=this,H=c(this.status.websocket_url),K=a().connect(H.origin,{transports:["websocket"],path:H.pathname});K.on("connect",function(){K.emit("assembly_connect",{id:L.status.assembly_id}),L.emit("connect")}),K.on("connect_failed",function(){L._onError(new t("Transloadit Socket.io connection error")),L.socket=null}),K.on("error",function(){K.disconnect(),L.socket=null}),K.on("assembly_finished",function(){L._onFinished()}),K.on("assembly_upload_finished",function(N){L.emit("upload",N),L.status.uploads.push(N)}),K.on("assembly_uploading_finished",function(){L.emit("executing")}),K.on("assembly_upload_meta_data_extracted",function(){L.emit("metadata"),L._fetchStatus({diff:!1})}),K.on("assembly_result_finished",function(N,R){L.emit("result",N,R),L.status.results[N]||(L.status.results[N]=[]),L.status.results[N].push(R)}),K.on("assembly_error",function(N){L._onError(N),L._fetchStatus({diff:!1})}),this.socket=K},S._onError=function(L){this.emit("error",o(new Error(L.message),L))},S._beginPolling=function(){var L=this;this.pollInterval=setInterval(function(){(!L.socket||!L.socket.connected)&&L._fetchStatus()},2e3)},S._fetchStatus=function(L){var H=this,N=(void 0===L?{}:L).diff,R=void 0===N||N;return h(this.status.assembly_ssl_url).then(function(_){return _.json()}).then(function(_){H.closed||(H.emit("status",_),R?H.updateStatus(_):H.status=_)}).catch(function(_){return H._onError(_)})},S.update=function(){return this._fetchStatus({diff:!0})},S.updateStatus=function(L){this._diffStatus(this.status,L),this.status=L},S._diffStatus=function(L,H){var K=this,N=L.ok,R=H.ok;if(H.error&&!L.error)return this._onError(H);var _=w(R,f)&&!w(N,f);_&&this.emit("executing"),Object.keys(H.uploads).filter(function(m){return!u(L.uploads,m)}).map(function(m){return H.uploads[m]}).forEach(function(m){K.emit("upload",m)}),_&&this.emit("metadata"),Object.keys(H.results).forEach(function(m){var b=H.results[m],C=L.results[m];b.filter(function(D){return!C||!C.some(function(I){return I.id===D.id})}).forEach(function(D){K.emit("result",m,D)})}),w(R,g)&&!w(N,g)&&this.emit("finished")},S.close=function(){this.closed=!0,this.socket&&(this.socket.disconnect(),this.socket=null),clearInterval(this.pollInterval)},y}(d);O.exports=U},23019:O=>{function v(o){if(!o)throw new Error("Transloadit: The `params` option is required.");if("string"==typeof o)try{o=JSON.parse(o)}catch(n){throw n.message="Transloadit: The `params` option is a malformed JSON string: "+n.message,n}if(!o.auth||!o.auth.key)throw new Error("Transloadit: The `params.auth.key` option is required. You can find your Transloadit API key at https://transloadit.com/account/api-settings.")}var e=function(){function o(l,a){this.files=l,this.opts=a}var n=o.prototype;return n._normalizeAssemblyOptions=function(a,d){if(Array.isArray(d.fields)){var u=d.fields;d.fields={},u.forEach(function(c){d.fields[c]=a.meta[c]})}return d.fields||(d.fields={}),d},n._getAssemblyOptions=function(a){var d=this,u=this.opts;return Promise.resolve().then(function(){return u.getAssemblyOptions(a,u)}).then(function(c){return d._normalizeAssemblyOptions(a,c)}).then(function(c){return v(c.params),{fileIDs:[a.id],options:c}})},n._dedupe=function(a){var d=Object.create(null);return a.forEach(function(u){var i,c=u.fileIDs,t=u.options,h=JSON.stringify(t);d[h]?(i=d[h].fileIDs).push.apply(i,c):d[h]={options:t,fileIDs:[].concat(c)}}),Object.keys(d).map(function(u){return d[u]})},n.build=function(){var a=this,d=this.opts;return this.files.length>0?Promise.all(this.files.map(function(u){return a._getAssemblyOptions(u)})).then(function(u){return a._dedupe(u)}):d.alwaysRunAssembly?Promise.resolve(d.getAssemblyOptions(null,d)).then(function(u){return v(u.params),[{fileIDs:a.files.map(function(c){return c.id}),options:u}]}):Promise.resolve([])},o}();
1O.exports=e,O.exports.validateParams=v},233:(O,v,e)=>{function o(u){if(void 0===u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function l(u,c){return(l=Object.setPrototypeOf||function(h,i){return h.__proto__=i,h})(u,c)}var d=function(u){function c(h,i){var s;return(s=u.call(this)||this)._uppy=h,s._assemblyIDs=i,s._remaining=i.length,s.promise=new Promise(function(r,f){s._resolve=r,s._reject=f}),s._onAssemblyComplete=s._onAssemblyComplete.bind(o(s)),s._onAssemblyCancel=s._onAssemblyCancel.bind(o(s)),s._onAssemblyError=s._onAssemblyError.bind(o(s)),s._onImportError=s._onImportError.bind(o(s)),s._addListeners(),s}!function(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,l(u,c)}(c,u);var t=c.prototype;return t._watching=function(i){return-1!==this._assemblyIDs.indexOf(i)},t._onAssemblyComplete=function(i){!this._watching(i.assembly_id)||(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly finish "+i.assembly_id),this.emit("assembly-complete",i.assembly_id),this._checkAllComplete())},t._onAssemblyCancel=function(i){!this._watching(i.assembly_id)||this._checkAllComplete()},t._onAssemblyError=function(i,s){!this._watching(i.assembly_id)||(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly error "+i.assembly_id),this._uppy.log(s),this.emit("assembly-error",i.assembly_id,s),this._checkAllComplete())},t._onImportError=function(i,s,r){!this._watching(i.assembly_id)||this._onAssemblyError(i,r)},t._checkAllComplete=function(){this._remaining-=1,0===this._remaining&&(this._removeListeners(),this._resolve())},t._removeListeners=function(){this._uppy.off("transloadit:complete",this._onAssemblyComplete),this._uppy.off("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.off("transloadit:assembly-error",this._onAssemblyError),this._uppy.off("transloadit:import-error",this._onImportError)},t._addListeners=function(){this._uppy.on("transloadit:complete",this._onAssemblyComplete),this._uppy.on("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.on("transloadit:assembly-error",this._onAssemblyError),this._uppy.on("transloadit:import-error",this._onImportError)},c}(e(65899));O.exports=d},67025:(O,v,e)=>{var o=e(29670),n=e(2135);O.exports=function(){function l(d){void 0===d&&(d={}),this.opts=d,this._reportError=this._reportError.bind(this),this._headers={"Transloadit-Client":this.opts.client}}var a=l.prototype;return a.createAssembly=function(u){var c=this,t=u.params,h=u.fields,i=u.signature,s=u.expectedFiles,r=new FormData;r.append("params","string"==typeof t?t:JSON.stringify(t)),i&&r.append("signature",i),Object.keys(h).forEach(function(g){r.append(g,h[g])}),r.append("num_expected_upload_files",s);var f=new n("/assemblies",""+this.opts.service).href;return o(f,{method:"post",headers:this._headers,body:r}).then(function(g){return g.json()}).then(function(g){if(g.error){var A=new Error(g.error);throw A.details=g.message,A.assembly=g,g.assembly_id&&(A.details+=" Assembly ID: "+g.assembly_id),A}return g}).catch(function(g){return c._reportError(g,{url:f,type:"API_ERROR"})})},a.reserveFile=function(u,c){var t=this,h=encodeURIComponent(c.size),i=u.assembly_ssl_url+"/reserve_file?size="+h;return o(i,{method:"post",headers:this._headers}).then(function(s){return s.json()}).catch(function(s){return t._reportError(s,{assembly:u,file:c,url:i,type:"API_ERROR"})})},a.addFile=function(u,c){var t=this;if(!c.uploadURL)return Promise.reject(new Error("File does not have an `uploadURL`."));var h=encodeURIComponent(c.size),i=encodeURIComponent(c.uploadURL),f="size="+h+"&filename="+encodeURIComponent(c.name)+"&fieldname=file&s3Url="+i,g=u.assembly_ssl_url+"/add_file?"+f;return o(g,{method:"post",headers:this._headers}).then(function(A){return A.json()}).catch(function(A){return t._reportError(A,{assembly:u,file:c,url:g,type:"API_ERROR"})})},a.cancelAssembly=function(u){var c=this,t=u.assembly_ssl_url;return o(t,{method:"delete",headers:this._headers}).then(function(h){return h.json()}).catch(function(h){return c._reportError(h,{url:t,type:"API_ERROR"})})},a.getAssemblyStatus=function(u){var c=this;return o(u,{headers:this._headers}).then(function(t){return t.json()}).catch(function(t){return c._reportError(t,{url:u,type:"STATUS_ERROR"})})},a.submitError=function(u,c){var t=c.endpoint,h=c.instance,i=c.assembly,s=u.details?u.message+" ("+u.details+")":u.message;return o("https://transloaditstatus.com/client_error",{method:"post",body:JSON.stringify({endpoint:t,instance:h,assembly_id:i,agent:"undefined"!=typeof navigator?navigator.userAgent:"",client:this.opts.client,error:s})}).then(function(r){return r.json()})}
1,a._reportError=function(u,c){if(!1===this.opts.errorReporting)throw u;var t={type:c.type};throw c.assembly&&(t.assembly=c.assembly.assembly_id,t.instance=c.assembly.instance),c.url&&(t.endpoint=c.url),this.submitError(u,t).catch(function(h){}),u},l}()},93011:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(x){for(var L=1;L<arguments.length;L++){var H=arguments[L];for(var K in H)Object.prototype.hasOwnProperty.call(H,K)&&(x[K]=H[K])}return x},l.apply(this,arguments)}function a(x){if(void 0===x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function u(x,L){return(u=Object.setPrototypeOf||function(K,N){return K.__proto__=N,K})(x,L)}var c=e(30831),t=e(9684),i=e(79684).Plugin,s=e(91795),r=e(53106),f=e(67025),g=e(23019),A=e(233);function w(x,L){return{params:L.params,signature:L.signature,fields:L.fields}}var U="https://api2.transloadit.com/companion",y=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/,S=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/uppy-server/;O.exports=(n=o=function(x){function L(K,N){var R;(R=x.call(this,K,N)||this).type="uploader",R.id=R.opts.id||"Transloadit",R.title="Transloadit",R.defaultLocale={strings:{creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",encoding:"Encoding..."}};var _={service:"https://api2.transloadit.com",errorReporting:!0,waitForEncoding:!1,waitForMetadata:!1,alwaysRunAssembly:!1,importFromUploadURLs:!1,signature:null,params:null,fields:{},getAssemblyOptions:w,limit:0};R.opts=l({},_,N),R.i18nInit(),R._prepareUpload=R._prepareUpload.bind(a(R)),R._afterUpload=R._afterUpload.bind(a(R)),R._onError=R._onError.bind(a(R)),R._onTusError=R._onTusError.bind(a(R)),R._onCancelAll=R._onCancelAll.bind(a(R)),R._onFileUploadURLAvailable=R._onFileUploadURLAvailable.bind(a(R)),R._onRestored=R._onRestored.bind(a(R)),R._getPersistentData=R._getPersistentData.bind(a(R));var m=R.opts.getAssemblyOptions!==_.getAssemblyOptions;return R.opts.params?g.validateParams(R.opts.params):m||g.validateParams(null),R.client=new f({service:R.opts.service,client:R._getClientVersion(),errorReporting:R.opts.errorReporting}),R.activeAssemblies={},R.assemblyWatchers={},R.completedFiles=Object.create(null),R}!function(x,L){x.prototype=Object.create(L.prototype),x.prototype.constructor=x,u(x,L)}(L,x);var H=L.prototype;return H.setOptions=function(N){x.prototype.setOptions.call(this,N),this.i18nInit()},H.i18nInit=function(){this.translator=new c([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},H._getClientVersion=function(){var N=this,R=["uppy-core:"+this.uppy.constructor.VERSION,"uppy-transloadit:"+this.constructor.VERSION,"uppy-tus:"+s.VERSION],_=function(b,C){var D=N.uppy.getPlugin(b);D&&R.push(C+":"+D.constructor.VERSION)};return this.opts.importFromUploadURLs&&(_("XHRUpload","uppy-xhr-upload"),_("AwsS3","uppy-aws-s3"),_("AwsS3Multipart","uppy-aws-s3-multipart")),_("Dropbox","uppy-dropbox"),_("Box","uppy-box"),_("Facebook","uppy-facebook"),_("GoogleDrive","uppy-google-drive"),_("Instagram","uppy-instagram"),_("OneDrive","uppy-onedrive"),_("Zoom","uppy-zoom"),_("Url","uppy-url"),R.join(",")},H._attachAssemblyMetadata=function(N,R){var _=l({},N.meta,{assembly_url:R.assembly_url,filename:N.name,fieldname:"file"}),m=l({},N.tus,{endpoint:R.tus_url,addRequestId:!0}),b=N.remote;if(N.remote&&S.test(N.remote.companionUrl)){var C=new Error("The https://api2.transloadit.com/uppy-server endpoint was renamed to https://api2.transloadit.com/companion, please update your `companionUrl` options accordingly.");throw this.uppy.log(C),C}if(N.remote&&y.test(N.remote.companionUrl)){var D=R.companion_url.replace(/\/$/,""),I=N.remote.url.replace(N.remote.companionUrl,"").replace(/^\//,"");b=l({},N.remote,{companionUrl:D,url:D+"/"+I})}var P=l({},N,{transloadit:{assembly:R.assembly_id}});return this.opts.importFromUploadURLs||l(P,{meta:_,tus:m,remote:b}),P},H._createAssembly=function(N,R,_){var m=this;
1return this.uppy.log("[Transloadit] Create Assembly"),this.client.createAssembly({params:_.params,fields:_.fields,expectedFiles:N.length,signature:_.signature}).then(function(b){var C,D,I=new r(b),P=I.status,B=P.assembly_id,p=m.getPluginState(),Y=p.assemblies,j=p.uploadsAssemblies;m.setPluginState({assemblies:l({},Y,(C={},C[B]=P,C)),uploadsAssemblies:l({},j,(D={},D[R]=[].concat(j[R],[B]),D))});var ne=m.uppy.getState().files,se={};return N.forEach(function(le){se[le]=m._attachAssemblyMetadata(m.uppy.getFile(le),P)}),m.uppy.setState({files:l({},ne,se)}),m.uppy.emit("transloadit:assembly-created",P,N),m.uppy.log("[Transloadit] Created Assembly "+B),I}).catch(function(b){throw b.message=m.i18n("creatingAssemblyFailed")+": "+b.message,b})},H._createAssemblyWatcher=function(N,R,_){var m=this,b=new A(this.uppy,N);b.on("assembly-complete",function(C){m.getAssemblyFiles(C).forEach(function(I){m.completedFiles[I.id]=!0,m.uppy.emit("postprocess-complete",I)})}),b.on("assembly-error",function(C,D){m.getAssemblyFiles(C).forEach(function(P){m.uppy.emit("upload-error",P,D),m.uppy.emit("postprocess-complete",P)})}),this.assemblyWatchers[_]=b},H._shouldWaitAfterUpload=function(){return this.opts.waitForEncoding||this.opts.waitForMetadata},H._reserveFiles=function(N,R){var _=this;return Promise.all(R.map(function(m){var b=_.uppy.getFile(m);return _.client.reserveFile(N.status,b)}))},H._onFileUploadURLAvailable=function(N){var R=this,_=this.uppy.getFile(N.id);if(_&&_.transloadit&&_.transloadit.assembly){var C=this.getPluginState().assemblies[_.transloadit.assembly];this.client.addFile(C,_).catch(function(D){R.uppy.log(D),R.uppy.emit("transloadit:import-error",C,_.id,D)})}},H._findFile=function(N){for(var R=this.uppy.getFiles(),_=0;_<R.length;_++){var m=R[_];if(m.uploadURL===N.tus_upload_url||m.tus&&m.tus.uploadUrl===N.tus_upload_url||!N.is_tus_file&&m.name===N.name&&m.size===N.size)return m}},H._onFileUploadComplete=function(N,R){var _,m=this.getPluginState(),b=this._findFile(R);b?(this.setPluginState({files:l({},m.files,(_={},_[R.id]={assembly:N,id:b.id,uploadedFile:R},_))}),this.uppy.emit("transloadit:upload",R,this.getAssembly(N))):this.uppy.log("[Transloadit] Couldn\u2019t file the file, it was likely removed in the process")},H._onResult=function(N,R,_){var m=this.getPluginState(),b=m.files[_.original_id];_.localId=b?b.id:null;var C={result:_,stepName:R,id:_.id,assembly:N};this.setPluginState({results:[].concat(m.results,[C])}),this.uppy.emit("transloadit:result",R,_,this.getAssembly(N))},H._onAssemblyFinished=function(N){var R=this,_=N.assembly_ssl_url;this.client.getAssemblyStatus(_).then(function(m){var b,C=m.assembly_id,D=R.getPluginState();R.setPluginState({assemblies:l({},D.assemblies,(b={},b[C]=m,b))}),R.uppy.emit("transloadit:complete",m)})},H._cancelAssembly=function(N){var R=this;return this.client.cancelAssembly(N).then(function(){R.uppy.emit("transloadit:assembly-cancelled",N)})},H._onCancelAll=function(){var N=this,_=this.getPluginState().uploadsAssemblies,b=Object.keys(_).reduce(function(C,D){return C.push.apply(C,_[D]),C},[]).map(function(C){var D=N.getAssembly(C);return N._cancelAssembly(D)});Promise.all(b).catch(function(C){N.uppy.log(C)})},H._getPersistentData=function(N){var R,_=this.getPluginState(),m=_.assemblies,b=_.uploadsAssemblies;N(((R={})[this.id]={assemblies:m,uploadsAssemblies:b},R))},H._onRestored=function(N){var R=this,_=N&&N[this.id]?N[this.id]:{},m=_.assemblies||{},b=_.uploadsAssemblies||{};if(0!==Object.keys(b).length){this.restored=Promise.resolve().then(function(){return B=m,p={},Y=[],Object.keys(B).forEach(function(j){var ee=B[j];ee.uploads.forEach(function(se){var le=R._findFile(se);p[se.id]={id:le.id,assembly:j,uploadedFile:se}});var ne=R.getPluginState();Object.keys(ee.results).forEach(function(se){ee.results[se].forEach(function(le){var he=ne.files[le.original_id];le.localId=he?he.id:null,Y.push({id:le.id,result:le,stepName:se,assembly:j})})})}),R.setPluginState({assemblies:B,files:p,results:Y,uploadsAssemblies:b}),function(){var B=R.getPluginState(),p=B.assemblies,Y=B.uploadsAssemblies;Object.keys(Y).forEach(function(ee){var ne=Y[ee],se=ne.reduce(function(le,he){var ve=R.getAssemblyFiles(he).map(function(z){return z.id});return le.push.apply(le,ve),le},[]);R._createAssemblyWatcher(ne,se,ee)}
1),Object.keys(p).forEach(function(ee){var ne=new r(p[ee]);R._connectAssembly(ne)})}(),function(){var p=R.getPluginState().assemblies;return Promise.all(Object.keys(p).map(function(Y){return R.activeAssemblies[Y].update()}))}();var B,p,Y}),this.restored.then(function(){R.restored=null})}},H._connectAssembly=function(N){var R=this,m=N.status.assembly_id;if(this.activeAssemblies[m]=N,N.on("status",function(C){var D,P=R.getPluginState().assemblies;R.setPluginState({assemblies:l({},P,(D={},D[m]=C,D))})}),N.on("upload",function(C){R._onFileUploadComplete(m,C)}),N.on("error",function(C){C.assembly=N.status,R.uppy.emit("transloadit:assembly-error",N.status,C)}),N.on("executing",function(){R.uppy.emit("transloadit:assembly-executing",N.status)}),this.opts.waitForEncoding&&N.on("result",function(C,D){R._onResult(m,C,D)}),this.opts.waitForEncoding?N.on("finished",function(){R._onAssemblyFinished(N.status)}):this.opts.waitForMetadata&&N.on("metadata",function(){R._onAssemblyFinished(N.status)}),"ASSEMBLY_COMPLETE"===N.ok)return N;new Promise(function(C,D){N.once("connect",C),N.once("status",C),N.once("error",D)}).then(function(){R.uppy.log("[Transloadit] Socket is ready")});return N.connect(),N},H._prepareUpload=function(N,R){var m,_=this;(N=N.filter(function(B){return!B.error})).forEach(function(B){var p=_.uppy.getFile(B);_.uppy.emit("preprocess-progress",p,{mode:"indeterminate",message:_.i18n("creatingAssembly")})});var b=function(p){var ee,Y=p.fileIDs,j=p.options;return _._createAssembly(Y,R,j).then(function(ne){if(ee=ne,_.opts.importFromUploadURLs)return _._reserveFiles(ne,Y)}).then(function(){return Y.forEach(function(ne){var se=_.uppy.getFile(ne);_.uppy.emit("preprocess-complete",se)}),ee}).catch(function(ne){throw Y.forEach(function(se){var le=_.uppy.getFile(se);_.uppy.emit("preprocess-complete",le),_.uppy.emit("upload-error",le,ne)}),ne})},D=this.getPluginState().uploadsAssemblies;this.setPluginState({uploadsAssemblies:l({},D,(m={},m[R]=[],m))});var I=N.map(function(B){return _.uppy.getFile(B)});return new g(I,this.opts).build().then(function(B){return Promise.all(B.map(b)).then(function(p){var Y=p.map(function(j){return j.status.assembly_id});_._createAssemblyWatcher(Y,N,R),p.map(function(j){return _._connectAssembly(j)})})},function(B){throw N.forEach(function(p){var Y=_.uppy.getFile(p);_.uppy.emit("preprocess-complete",Y),_.uppy.emit("upload-error",Y,B)}),B})},H._afterUpload=function(N,R){var _=this,m=N.map(function(p){return _.uppy.getFile(p)});N=m.filter(function(p){return!p.error}).map(function(p){return p.id});var b=this.getPluginState();if(this.restored)return this.restored.then(function(){return _._afterUpload(N,R)});var C=b.uploadsAssemblies[R],D=function(){C.forEach(function(Y){_.activeAssemblies[Y].close(),delete _.activeAssemblies[Y]})};if(!this._shouldWaitAfterUpload()){D();var I=C.map(function(p){return _.getAssembly(p)});
1return this.uppy.addResultData(R,{transloadit:I}),Promise.resolve()}return 0===C.length?(this.uppy.addResultData(R,{transloadit:[]}),Promise.resolve()):(m.filter(function(p){return!t(_.completedFiles,p.id)}).forEach(function(p){_.uppy.emit("postprocess-progress",p,{mode:"indeterminate",message:_.i18n("encoding")})}),this.assemblyWatchers[R].promise.then(function(){D();var p=C.map(function(ee){return _.getAssembly(ee)}),j=l({},_.getPluginState().uploadsAssemblies);delete j[R],_.setPluginState({uploadsAssemblies:j}),_.uppy.addResultData(R,{transloadit:p})}))},H._onError=function(N,R){var _=this;void 0===N&&(N=null),this.getPluginState().uploadsAssemblies[R].forEach(function(C){_.activeAssemblies[C]&&_.activeAssemblies[C].close()})},H._onTusError=function(N){if(N&&/^tus: /.test(N.message)){var R=N.originalRequest?N.originalRequest.getUnderlyingObject():null,_=R&&R.responseURL?R.responseURL:null;this.client.submitError(N,{url:_,type:"TUS_ERROR"}).then(function(m){})}},H.install=function(){this.uppy.addPreProcessor(this._prepareUpload),this.uppy.addPostProcessor(this._afterUpload),this.uppy.on("error",this._onError),this.uppy.on("cancel-all",this._onCancelAll),this.uppy.on("upload-error",this._onTusError),this.opts.importFromUploadURLs?this.uppy.on("upload-success",this._onFileUploadURLAvailable):this.uppy.use(s,{storeFingerprintForResuming:!1,resume:!1,useFastRemoteRetry:!1,metaFields:["assembly_url","filename","fieldname"],limit:this.opts.limit}),this.uppy.on("restore:get-data",this._getPersistentData),this.uppy.on("restored",this._onRestored),this.setPluginState({assemblies:{},uploadsAssemblies:{},files:{},results:[]});var R=this.uppy.getState().capabilities;this.uppy.setState({capabilities:l({},R,{individualCancellation:!1})})},H.uninstall=function(){this.uppy.removePreProcessor(this._prepareUpload),this.uppy.removePostProcessor(this._afterUpload),this.uppy.off("error",this._onError),this.opts.importFromUploadURLs&&this.uppy.off("upload-success",this._onFileUploadURLAvailable);var R=this.uppy.getState().capabilities;this.uppy.setState({capabilities:l({},R,{individualCancellation:!0})})},H.getAssembly=function(N){return this.getPluginState().assemblies[N]}
1,H.getAssemblyFiles=function(N){return this.uppy.getFiles().filter(function(R){return R&&R.transloadit&&R.transloadit.assembly===N})},L}(i),o.VERSION="1.7.0",n),O.exports.COMPANION=U,O.exports.UPPY_SERVER=U,O.exports.COMPANION_PATTERN=/\.transloadit\.com$/},15553:O=>{O.exports=function(e){var o=/^\w+:\/\//.exec(e),n=0;o&&(n=o[0].length+1);var l=e.indexOf("/",n);return-1===l?{origin:e,pathname:"/"}:{origin:e.slice(0,l),pathname:e.slice(l)}}},11986:(O,v,e)=>{var o=e(57499);O.exports=function(d){return function(u,c){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return o.defaultOptions.fingerprint(u,c);var t=["tus",d.id,c.endpoint].join("-");return Promise.resolve(t)}}},91795:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(K){for(var N=1;N<arguments.length;N++){var R=arguments[N];for(var _ in R)Object.prototype.hasOwnProperty.call(R,_)&&(K[_]=R[_])}return K},l.apply(this,arguments)}function a(K){if(void 0===K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function u(K,N){return(u=Object.setPrototypeOf||function(_,m){return _.__proto__=m,_})(K,N)}var t=e(79684).Plugin,h=e(57499),i=e(95290),s=i.Provider,r=i.RequestClient,f=i.Socket,g=e(29137),A=e(70207),w=e(96330),U=e(14666),F=e(7246),y=e(63424),S=e(33172),x=e(9684),L=e(11986),H={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1};O.exports=(n=o=function(K){function N(_,m){var b;(b=K.call(this,_,m)||this).type="uploader",b.id=b.opts.id||"Tus",b.title="Tus";return b.opts=l({},{autoRetry:!0,resume:!0,useFastRemoteRetry:!0,limit:0,retryDelays:[0,1e3,3e3,5e3],withCredentials:!1},m),b.requests=new S(b.opts.limit),b.uploaders=Object.create(null),b.uploaderEvents=Object.create(null),b.uploaderSockets=Object.create(null),b.handleResetProgress=b.handleResetProgress.bind(a(b)),b.handleUpload=b.handleUpload.bind(a(b)),b}!function(K,N){K.prototype=Object.create(N.prototype),K.prototype.constructor=K,u(K,N)}(N,K);var R=N.prototype;return R.handleResetProgress=function(){var m=l({},this.uppy.getState().files);Object.keys(m).forEach(function(b){if(m[b].tus&&m[b].tus.uploadUrl){var C=l({},m[b].tus);delete C.uploadUrl,m[b]=l({},m[b],{tus:C})}}),this.uppy.setState({files:m})},R.resetUploaderReferences=function(m,b){if(void 0===b&&(b={}),this.uploaders[m]){var C=this.uploaders[m];C.abort(),b.abort&&setTimeout(function(){return C.abort(!0)},1e3),this.uploaders[m]=null}this.uploaderEvents[m]&&(this.uploaderEvents[m].remove(),this.uploaderEvents[m]=null),this.uploaderSockets[m]&&(this.uploaderSockets[m].close(),this.uploaderSockets[m]=null)},R.upload=function(m,b,C){var D=this;return this.resetUploaderReferences(m.id),new Promise(function(I,P){D.uppy.emit("upload-started",m);var B=l({},D.opts,m.tus||{}),p=l({},H,B);delete p.resume,B.resume&&(p.storeFingerprintForResuming=!0),p.fingerprint=L(m),p.onBeforeRequest=function(le){le.getUnderlyingObject().withCredentials=!!B.withCredentials,"function"==typeof B.onBeforeRequest&&B.onBeforeRequest(le)},p.onError=function(le){D.uppy.log(le);var he=le.originalRequest?le.originalRequest.getUnderlyingObject():null;y(he)&&(le=new F(le,he)),D.resetUploaderReferences(m.id),se.done(),D.uppy.emit("upload-error",m,le),P(le)},p.onProgress=function(le,he){D.onReceiveUploadUrl(m,ne.url),D.uppy.emit("upload-progress",m,{uploader:D,bytesUploaded:le,bytesTotal:he})},p.onSuccess=function(){var le={uploadURL:ne.url};D.resetUploaderReferences(m.id),se.done(),D.uppy.emit("upload-success",m,le),ne.url&&D.uppy.log("Download "+ne.file.name+" from "+ne.url),I(ne)};var Y=function(he,ve,z){x(he,ve)&&!x(he,z)&&(he[z]=he[ve])},j={};(Array.isArray(B.metaFields)?B.metaFields:Object.keys(m.meta)).forEac
1h(function(le){j[le]=m.meta[le]}),Y(j,"type","filetype"),Y(j,"name","filename"),p.metadata=j;var ne=new h.Upload(m.data,p);D.uploaders[m.id]=ne,D.uploaderEvents[m.id]=new U(D.uppy),B.resume&&ne.findPreviousUploads().then(function(le){var he=le[0];he&&(D.uppy.log("[Tus] Resuming upload of "+m.id+" started at "+he.creationTime),ne.resumeFromPreviousUpload(he))});var se=D.requests.run(function(){return m.isPaused||Promise.resolve().then(function(){ne.start()}),function(){}});D.onFileRemove(m.id,function(le){se.abort(),D.resetUploaderReferences(m.id,{abort:!!ne.url}),I("upload "+le+" was removed")}),D.onPause(m.id,function(le){le?(se.abort(),ne.abort()):(se.abort(),se=D.requests.run(function(){return ne.start(),function(){}}))}),D.onPauseAll(m.id,function(){se.abort(),ne.abort()}),D.onCancelAll(m.id,function(){se.abort(),D.resetUploaderReferences(m.id,{abort:!!ne.url}),I("upload "+m.id+" was canceled")}),D.onResumeAll(m.id,function(){se.abort(),m.error&&ne.abort(),se=D.requests.run(function(){return ne.start(),function(){}})})}).catch(function(I){throw D.uppy.emit("upload-error",m,I),I})},R.uploadRemote=function(m,b,C){var D=this;this.resetUploaderReferences(m.id);var I=l({},this.opts);return m.tus&&l(I,m.tus),this.uppy.emit("upload-started",m),this.uppy.log(m.remote.url),m.serverToken?this.connectToServerSocket(m):new Promise(function(P,B){new(m.remote.providerOptions.provider?s:r)(D.uppy,m.remote.providerOptions).post(m.remote.url,l({},m.remote.body,{endpoint:I.endpoint,uploadUrl:I.uploadUrl,protocol:"tus",size:m.data.size,headers:I.headers,metadata:m.meta})).then(function(j){return D.uppy.setFileState(m.id,{serverToken:j.token}),m=D.uppy.getFile(m.id),D.connectToServerSocket(m)}).then(function(){P()}).catch(function(j){D.uppy.emit("upload-error",m,j),B(j)})})},R.connectToServerSocket=function(m){var b=this;return new Promise(function(C,D){var I=m.serverToken,P=A(m.remote.companionUrl),B=new f({target:P+"/api/"+I,autoOpen:!1});b.uploaderSockets[m.id]=B,b.uploaderEvents[m.id]=new U(b.uppy),b.onFileRemove(m.id,function(){p.abort(),B.send("pause",{}),B.send("cancel",{}),b.resetUploaderReferences(m.id),C("upload "+m.id+" was removed")}),b.onPause(m.id,function(Y){Y?(p.abort(),B.send("pause",{})):(p.abort(),p=b.requests.run(function(){return B.send("resume",{}),function(){}}))}),b.onPauseAll(m.id,function(){p.abort(),B.send("pause",{})}),b.onCancelAll(m.id,function(){p.abort(),B.send("pause",{}),B.send("cancel",{}),b.resetUploaderReferences(m.id),C("upload "+m.id+" was canceled")}),b.onResumeAll(m.id,function(){p.abort(),m.error&&B.send("pause",{}),p=b.requests.run(function(){return B.send("resume",{}),function(){}})}),b.onRetry(m.id,function(){B.isOpen&&(B.send("pause",{}),B.send("resume",{}))}),b.onRetryAll(m.id,function(){B.isOpen&&(B.send("pause",{}),B.send("resume",{}))}),B.on("progress",function(Y){return g(b,Y,m)}),B.on("error",function(Y){var j=Y.error.message,ee=l(new Error(j),{cause:Y.error});b.opts.useFastRemoteRetry?B.close():(b.resetUploaderReferences(m.id),b.uppy.setFileState(m.id,{serverToken:null})),b.uppy.emit("upload-error",m,ee),p.done(),D(ee)}),B.on("success",function(Y){var j={uploadURL:Y.url};b.uppy.emit("upload-success",m,j),b.resetUploaderReferences(m.id),p.done(),C()});var p=b.requests.run(function(){return B.open(),m.isPaused&&B.send("pause",{}),function(){}})})},R.onReceiveUploadUrl=function(m,b){var C=this.uppy.getFile(m.id);!C||(!C.tus||C.tus.uploadUrl!==b)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(C.id,{tus:l({},C.tus,{uploadUrl:b})}))},R.onFileRemove=function(m,b){this.uploaderEvents[m].on("file-removed",function(C){m===C.id&&b(C.id)})},R.onPause=function(m,b){this.uploaderEvents[m].on("upload-pause",function(C,D){m===C&&b(D)})},R.onRetry=function(m,b){this.uploaderEvents[m].on("upload-retry",function(C){m===C&&b()})},R.onRetryAll=function(m,b){var C=this;this.uploaderEvents[m].on("retry-all",function(D){!C.uppy.getFile(m)||b()})},R.onPauseAll=function(m,b){var C=this;this.uploaderEvents[m].on("pause-all",function(){!C.uppy.getFile(m)||b()})}
1,R.onCancelAll=function(m,b){var C=this;this.uploaderEvents[m].on("cancel-all",function(){!C.uppy.getFile(m)||b()})},R.onResumeAll=function(m,b){var C=this;this.uploaderEvents[m].on("resume-all",function(){!C.uppy.getFile(m)||b()})},R.uploadFiles=function(m){var b=this,C=m.map(function(D,I){var P=I+1,B=m.length;return"error"in D&&D.error?Promise.reject(new Error(D.error)):D.isRemote?((!D.progress.uploadStarted||!D.isRestored)&&b.uppy.emit("upload-started",D),b.uploadRemote(D,P,B)):((!D.progress.uploadStarted||!D.isRestored)&&b.uppy.emit("upload-started",D),b.upload(D,P,B))});return w(C)},R.handleUpload=function(m){var b=this;if(0===m.length)return this.uppy.log("[Tus] No files to upload"),Promise.resolve();0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");var C=m.map(function(D){return b.uppy.getFile(D)});return this.uploadFiles(C).then(function(){return null})},R.install=function(){this.uppy.setState({capabilities:l({},this.uppy.getState().capabilities,{resumableUploads:!0})}),this.uppy.addUploader(this.handleUpload),this.uppy.on("reset-progress",this.handleResetProgress),this.opts.autoRetry&&this.uppy.on("back-online",this.uppy.retryAll)},R.uninstall=function(){this.uppy.setState({capabilities:l({},this.uppy.getState().capabilities,{resumableUploads:!1})}),this.uppy.removeUploader(this.handleUpload),this.opts.autoRetry&&this.uppy.off("back-online",this.uppy.retryAll)},N}(t),o.VERSION="1.9.2",n)},14666:O=>{O.exports=function(){function v(o){this._events=[],this._emitter=o}var e=v.prototype;return e.on=function(n,l){return this._events.push([n,l]),this._emitter.on(n,l)},e.remove=function(){var n=this;this._events.forEach(function(l){var a=l[0],d=l[1];n._emitter.off(a,d)})},v}()},86336:O=>{O.exports=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])']},7246:O=>{function e(c){var t="function"==typeof Map?new Map:void 0;return e=function(i){if(null===i||!function(c){return-1!==Function.toString.call(c).indexOf("[native code]")}(i))return i;if("function"!=typeof i)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(i))return t.get(i);t.set(i,s)}function s(){return o(i,arguments,d(this).constructor)}return s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a(s,i)},e(c)}function o(c,t,h){return(o=n()?Reflect.construct:function(s,r,f){var g=[null];g.push.apply(g,r);var w=new(Function.bind.apply(s,g));return f&&a(w,f.prototype),w}).apply(null,arguments)}function n(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}function a(c,t){return(a=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i})(c,t)}function d(c){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(c)}var u=function(c){function t(h,i){var s;return void 0===i&&(i=null),(s=c.call(this,"This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.\n\nSource error: ["+h+"]")||this).isNetworkError=!0,s.request=i,s}return function(c,t){c.prototype=Object.create(t.prototype),c.prototype.constructor=c,a(c,t)}(t,c),t}(e(Error));
1O.exports=u},39770:O=>{var v=function(){function e(n,l){this._timeout=n,this._onTimedOut=l,this._isDone=!1,this._aliveTimer=null,this._onTimedOut=this._onTimedOut.bind(this)}var o=e.prototype;return o.progress=function(){this._isDone||this._timeout>0&&(this._aliveTimer&&clearTimeout(this._aliveTimer),this._aliveTimer=setTimeout(this._onTimedOut,this._timeout))},o.done=function(){this._aliveTimer&&(clearTimeout(this._aliveTimer),this._aliveTimer=null),this._isDone=!0},e}();O.exports=v},33172:(O,v,e)=>{var o=e(95252);function n(){return new Error("Cancelled")}O.exports=function(){function l(d){this.limit="number"!=typeof d||0===d?1/0:d,this.activeRequests=0,this.queuedHandlers=[]}var a=l.prototype;return a._call=function(u){var c=this;this.activeRequests+=1;var h,t=!1;try{h=u()}catch(i){throw this.activeRequests-=1,i}return{abort:function(){t||(t=!0,c.activeRequests-=1,h(),c._queueNext())},done:function(){t||(t=!0,c.activeRequests-=1,c._queueNext())}}},a._queueNext=function(){var u=this;Promise.resolve().then(function(){u._next()})},a._next=function(){if(!(this.activeRequests>=this.limit)&&0!==this.queuedHandlers.length){var u=this.queuedHandlers.shift(),c=this._call(u.fn);u.abort=c.abort,u.done=c.done}},a._queue=function(u,c){var t=this;void 0===c&&(c={});var h={fn:u,priority:c.priority||0,abort:function(){t._dequeue(h)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=o(this.queuedHandlers,function(s){return h.priority>s.priority});return-1===i?this.queuedHandlers.push(h):this.queuedHandlers.splice(i,0,h),h},a._dequeue=function(u){var c=this.queuedHandlers.indexOf(u);-1!==c&&this.queuedHandlers.splice(c,1)},a.run=function(u,c){return this.activeRequests<this.limit?this._call(u):this._queue(u,c)},a.wrapPromiseFunction=function(u,c){var t=this;return function(){for(var h=arguments.length,i=new Array(h),s=0;s<h;s++)i[s]=arguments[s];var r,f=new Promise(function(g,A){r=t.run(function(){var w,U;try{U=Promise.resolve(u.apply(void 0,i))}catch(F){U=Promise.reject(F)}return U.then(function(F){w?A(w):(r.done(),g(F))},function(F){w?A(w):(r.done(),A(F))}),function(){w=n()}},c)});return f.abort=function(){r.abort()},f}},l}()},30831:(O,v,e)=>{function o(){return o=Object.assign||function(l){for(var a=1;a<arguments.length;a++){var d=arguments[a];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(l[u]=d[u])}return l},o.apply(this,arguments)}var n=e(9684);O.exports=function(){function l(d){var u=this;this.locale={strings:{},pluralize:function(t){return 1===t?0:1}},Array.isArray(d)?d.forEach(function(c){return u._apply(c)}):this._apply(d)}var a=l.prototype;return a._apply=function(u){if(u&&u.strings){var c=this.locale;this.locale=o({},c,{strings:o({},c.strings,u.strings)}),this.locale.pluralize=u.pluralize||c.pluralize}},a.interpolate=function(u,c){var t=String.prototype,h=t.split,i=t.replace,s=/\$/g,f=[u];for(var g in c)if("_"!==g&&n(c,g)){var A=c[g];"string"==typeof A&&(A=i.call(c[g],s,"$$$$")),f=w(f,new RegExp("%\\{"+g+"\\}","g"),A)}return f;function w(U,F,y){var S=[];return U.forEach(function(x){if("string"!=typeof x)return S.push(x);h.call(x,F).forEach(function(L,H,K){""!==L&&S.push(L),H<K.length-1&&S.push(y)})}),S}},a.translate=function(u,c){return this.translateArray(u,c).join("")},a.translateArray=function(u,c){if(!n(this.locale.strings,u))throw new Error("missing string: "+u);var t=this.locale.strings[u];if("object"==typeof t){if(c&&void 0!==c.smart_count){var i=this.locale.pluralize(c.smart_count);return this.interpolate(t[i],c)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return this.interpolate(t,c)},l}()},35502:(O,v,e)=>{var o=e(16368);O.exports=function(l,a,d){return l.toBlob?new Promise(function(u){l.toBlob(u,a,d)}):Promise.resolve().then(function(){return o(l.toDataURL(a,d),{})})}},16368:O=>{O.exports=function(e,o,n){var t,l=e.split(",")[1],a=o.mimeType||e.split(",")[0].split(":")[1].split(";")[0];null==a&&(a="plain/text");for(var d=atob(l),u=[],c=0;c<d.length;c++)u.push(d.charCodeAt(c));try{t=new Uint8Array(u)}catch(h){return null}return n?new File([t],o.name||"",{type:a}):new Blob([t],{type:a})}},29137:(O,v,e)=>{var o=e(6123);O.exports=o(function(l,a,d){var u=a.progress,c=a.bytesUploaded,t=a.bytesTotal;u&&(l.uppy.log("Upload progress: "+u),l.uppy.emit("upload-progress",d,{uploader:l,bytesUploaded:c,bytesTotal:t}))},300,{leading:!0,trailing:!0})},29670:(O,v,e)=>{var o=e(7246);O.exports=function(){return fetch.apply(void 0,arguments).catch(function(l){throw"AbortError"===l.name?l:new o(l)})}},84190:(O,v,e)=>{var o=e(94597);
1O.exports=function(l){if("string"==typeof l){var a=[].slice.call(document.querySelectorAll(l));return a.length>0?a:null}if("object"==typeof l&&o(l))return[l]}},90827:(O,v,e)=>{var o=e(94597);O.exports=function(l,a){return void 0===a&&(a=document),"string"==typeof l?a.querySelector(l):o(l)?l:void 0}},95252:O=>{O.exports=function(e,o){for(var n=0;n<e.length;n++)if(o(e[n]))return n;return-1}},30784:O=>{function v(o){var n="";return o.replace(/[^A-Z0-9]/gi,function(l){return n+="-"+function(o){return o.charCodeAt(0).toString(32)}(l),"/"})+n}O.exports=function(n){var l="uppy";return"string"==typeof n.name&&(l+="-"+v(n.name.toLowerCase())),void 0!==n.type&&(l+="-"+n.type),n.meta&&"string"==typeof n.meta.relativePath&&(l+="-"+v(n.meta.relativePath.toLowerCase())),void 0!==n.data.size&&(l+="-"+n.data.size),void 0!==n.data.lastModified&&(l+="-"+n.data.lastModified),l}},8020:O=>{O.exports=function(e){return e.bytesTotal-e.bytesUploaded}},94581:(O,v,e)=>{var o=e(26312),n=e(4050);O.exports=function(a,d){var c=(void 0===d?{}:d).logDropError,t=void 0===c?function(){}:c;return a.items&&a.items[0]&&"webkitGetAsEntry"in a.items[0]?o(a,t):n(a)}},4050:(O,v,e)=>{var o=e(26412);O.exports=function(l){var a=o(l.files);return Promise.resolve(a)}},8946:O=>{O.exports=function v(e,o,n,l){var a=l.onSuccess;e.readEntries(function(d){var u=[].concat(o,d);d.length?setTimeout(function(){v(e,u,n,{onSuccess:a})},0):a(u)},function(d){n(d),a(o)})}},96257:O=>{O.exports=function(e){return e.fullPath&&e.fullPath!=="/"+e.name?e.fullPath:null}},26312:(O,v,e)=>{var o=e(26412),n=e(96257),l=e(8946);O.exports=function(d,u){var c=[],t=[],h=function i(s){return new Promise(function(r){if(s.isFile)s.file(function(g){g.relativePath=n(s),c.push(g),r()},function(g){u(g),r()});else if(s.isDirectory){var f=s.createReader();l(f,[],u,{onSuccess:function(A){var w=A.map(function(U){return i(U)});Promise.all(w).then(function(){return r()})}})}})};return o(d.items).forEach(function(i){var s=i.webkitGetAsEntry();s&&t.push(h(s))}),Promise.all(t).then(function(){return c})}},41941:O=>{O.exports=function(e){var o=e.lastIndexOf(".");return-1===o||o===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,o),extension:e.slice(o+1)}}},13417:(O,v,e)=>{var o=e(41941),n=e(22682);O.exports=function(a){var d=a.name?o(a.name).extension:null;return d=d?d.toLowerCase():null,a.type?a.type:d&&n[d]?n[d]:"application/octet-stream"}},7173:O=>{var v={"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};O.exports=function(o){return o=o.replace(/;.*$/,""),v[o]||null}},70207:O=>{O.exports=function(e){var n=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return(/^http:\/\//i.test(e)?"ws":"wss")+"://"+n}},82638:O=>{O.exports=function(e){if(!e.bytesUploaded)return 0;var o=new Date-e.uploadStarted;return e.bytesUploaded/(o/1e3)}},55972:O=>{O.exports=function(e){for(;e&&!e.dir;)e=e.parentNode;return e?e.dir:void 0}},38638:O=>{function v(e){return 2!==e.length?0+e:e}O.exports=function(){var o=new Date;return v(o.getHours().toString())+":"+v(o.getMinutes().toString())+":"+v(o.getSeconds().toString())}},9684:O=>{O.exports=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},94597:O=>{O.exports=function(e){return e&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE}},66838:O=>{O.exports=function(){var e=document.createElement("div");return!!("draggable"in e&&"ondragstart"in e&&"ondrop"in e&&"FormData"in window&&"FileReader"in window)}},63424:O=>{O.exports=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}},3573:O=>{O.exports=function(e){return 0===e.indexOf("blob:")}},18050:O=>{O.exports=function(e){if(!e)return!1;var o=e.split("/")[1];return!!/^(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(o)}},22682:O=>{O.exports={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"}},13911:(O,v,e)=>{var o=e(5675);O.exports=function(l){var a=o(l),d=a.hours?a.hours+"h ":"",u=a.hours?("0"+a.minutes).substr(-2):a.minutes,c=u?u+"m":"",t=u?("0"+a.seconds).substr(-2):a.seconds;return""+d+c+(a.hours?"":u?" "+t+"s":t+"s")}},98449:(O,v,e)=>{function o(){return o=Object.assign||function(l){for(var a=1;a<arguments.length;a++){var d=arguments[a];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(l[u]=d[u])}return l},o.apply(this,arguments)}var n=e(41941);O.exports=function(a){return o({},a,{type:a.mimeType,extension:a.name?n(a.name).extension:null})}},5675:O=>{O.exports=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}},96330:O=>{O.exports=function(e){var o=[],n=[];function l(u){o.push(u)}function a(u){n.push(u)}return Promise.all(e.map(function(u){return u.then(l,a)})).then(function(){return{successful:o,failed:n}})}},26412:O=>{O.exports=function(e){return Array.prototype.slice.call(e||[],0)}},83135:O=>{O.exports=function(e,o){var n="...";if(e.length<=o)return e;if(o<=n.length)return e.substr(0,o);var l=o-n.length,a=Math.ceil(l/2),d=Math.floor(l/2);return e.substr(0,a)+n+e.substr(e.length-d)}},8965:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},n("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59
10-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"}))}},73324:(O,v,e)=>{function o(){return o=Object.assign||function(A){for(var w=1;w<arguments.length;w++){var U=arguments[w];for(var F in U)Object.prototype.hasOwnProperty.call(U,F)&&(A[F]=U[F])}return A},o.apply(this,arguments)}function l(A,w){return(l=Object.setPrototypeOf||function(F,y){return F.__proto__=y,F})(A,w)}var a=e(79606),d=a.h,u=a.Component,c=e(86395),t=e(41609),h=e(7426),i=e(62996),s=e(95196),r=e(63267);function f(A,w){return-1!==A.indexOf(w)}var g=function(A){function w(){return A.apply(this,arguments)||this}!function(A,w){A.prototype=Object.create(w.prototype),A.prototype.constructor=A,l(A,w)}(w,A);var U=w.prototype;return U.componentDidMount=function(){(0,this.props.onFocus)()},U.componentWillUnmount=function(){(0,this.props.onStop)()},U.render=function(){var y=this,S=this.props,x=S.src,L=S.recordedVideo,H=S.recording,K=S.modes,N=S.supportsRecording,R=S.videoSources,_=S.showVideoSourceDropdown,m=S.showRecordingLength,b=S.onSubmit,C=S.i18n,D=S.mirror,I=S.onSnapshot,P=S.onStartRecording,B=S.onStopRecording,p=S.onDiscardRecordedVideo,Y=S.recordingLengthSeconds,j=!!L,ee=!j&&N&&(f(K,"video-only")||f(K,"audio-only")||f(K,"video-audio")),ne=!j&&f(K,"picture"),se=N&&m,le=_&&R&&R.length>1,he={playsinline:!0};return L?(he.muted=!1,he.controls=!0,he.src=L,this.videoElement&&(this.videoElement.srcObject=void 0)):(he.muted=!0,he.autoplay=!0,he.srcObject=x),d("div",{className:"uppy uppy-Webcam-container"},d("div",{className:"uppy-Webcam-videoContainer"},d("video",o({ref:function(z){return y.videoElement=z},className:"uppy-Webcam-video "+(D?"uppy-Webcam-video--mirrored":"")},he))),d("div",{className:"uppy-Webcam-footer"},d("div",{className:"uppy-Webcam-videoSourceContainer"},le?i(this.props):null),d("div",{className:"uppy-Webcam-buttonContainer"},ne&&d(c,{onSnapshot:I,i18n:C}),ee&&d(t,{recording:H,onStartRecording:P,onStopRecording:B,i18n:C}),j&&d(s,{onSubmit:b,i18n:C}),j&&d(r,{onDiscard:p,i18n:C})),se&&d("div",{className:"uppy-Webcam-recordingLength"},d(h,{recordingLengthSeconds:Y,i18n:C}))))},w}(u);O.exports=g},63267:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){var d=a.onDiscard,u=a.i18n;return n("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:u("discardRecordedFile"),"aria-label":u("discardRecordedFile"),onClick:d,"data-uppy-super-focusable":!0},n("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},n("g",{fill:"#FFF",fillRule:"evenodd"},n("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),n("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))}},14690:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){return n("div",{className:"uppy-Webcam-permissons"},n("div",{className:"uppy-Webcam-permissonsIcon"},l.icon()),n("h1",{className:"uppy-Webcam-title"},l.hasCamera?l.i18n("allowAccessTitle"):l.i18n("noCameraTitle")),n("p",null,l.hasCamera?l.i18n("allowAccessDescription"):l.i18n("noCameraDescription")))}},41609:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){var d=a.recording,u=a.onStartRecording,c=a.onStopRecording,t=a.i18n;return d?n("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:t("stopRecording"),"aria-label":t("stopRecording"),onClick:c,"data-uppy-super-focusable":!0},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},n("rect",{x:"15",y:"15",width:"70",height:"70"}))):n("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:t("startRecording"),"aria-label":t("startRecording"),onClick:u,"data-uppy-super-focusable":!0},n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},n("circle",{cx:"50",cy:"50",r:"40"})))}},7426:(O,v,e)=>{var n=e(79606).h,l=e(50049);O.exports=function(d){var u=d.recordingLengthSeconds,c=d.i18n,t=l(u);return n("span",{"aria-label":c("recordingLength",{recording_length:t})},t)}},86395:(O,v,e)=>{var n=e(79606).h,l=e(8965);O.exports=function(a){var d=a.onSnapshot,u=a.i18n;return n("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:u("takePicture"),"aria-label":u("takePicture"),onClick:d,"data-uppy-super-focusable":!0},l())}},95196:(O,v,e)=>{var n=e(79606).h;O.exports=function(a){var d=a.onSubmit,u=a.i18n;return n("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:u("submitRecordedFile"),"aria-label":u("submitRecordedFile"),onClick:d,"data-uppy-super-focusable":!0},n("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},n("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))}},62996:(O,v,e)=>{var n=e(79606).h;O.exports=function(l){var a=l.currentDeviceId,d=l.videoSources,u=l.onChangeVideoSource;return n("div",{className:"uppy-Webcam-videoSource"},n("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:function(t){u(t.target.value)}},d.map(function(c){return n("option",{key:c.deviceId,value:c.deviceId,selected:c.deviceId===a},c.label)})))}},50049:O=>{O.exports=function(e){return Math.floor(e/60)+":"+String(e%60).padStart(2,0)}},39989:(O,v,e)=>{var o,n;function l(){return l=Object.assign||function(H){for(var K=1;K<arguments.length;K++){var N=arguments[K];for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(H[R]=N[R])}return H},l.apply(this,arguments)}function a(H){if(void 0===H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function u(H,K){return(u=Object.setPrototypeOf||function(R,_){return R.__proto__=_,R})(H,K)}
1var t=e(79606).h,i=e(79684).Plugin,s=e(30831),r=e(7173),f=e(22682),g=e(35502),A=e(50343),w=e(8965),U=e(73324),F=e(14690);function y(H){return"."===H[0]?f[H.slice(1)]:H}function S(H){return/^video\/[^*]+$/.test(H)}function x(H){return/^image\/[^*]+$/.test(H)}O.exports=(n=o=function(H){function K(R,_){var m;(m=H.call(this,R,_)||this).mediaDevices=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var H=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return H?{getUserMedia:function(N){return new Promise(function(R,_){H.call(navigator,N,R,_)})}}:null}(),m.supportsUserMedia=!!m.mediaDevices,m.protocol=location.protocol.match(/https/i)?"https":"http",m.id=m.opts.id||"Webcam",m.title=m.opts.title||"Camera",m.type="acquirer",m.capturedMediaFile=null,m.icon=function(){return t("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},t("g",{fill:"none",fillRule:"evenodd"},t("rect",{className:"uppy-ProviderIconBg",fill:"#03BFEF",width:"32",height:"32",rx:"16"}),t("path",{d:"M22 11c1.133 0 2 .867 2 2v7.333c0 1.134-.867 2-2 2H10c-1.133 0-2-.866-2-2V13c0-1.133.867-2 2-2h2.333l1.134-1.733C13.6 9.133 13.8 9 14 9h4c.2 0 .4.133.533.267L19.667 11H22zm-6 1.533a3.764 3.764 0 0 0-3.8 3.8c0 2.129 1.672 3.801 3.8 3.801s3.8-1.672 3.8-3.8c0-2.13-1.672-3.801-3.8-3.801zm0 6.261c-1.395 0-2.46-1.066-2.46-2.46 0-1.395 1.065-2.461 2.46-2.461s2.46 1.066 2.46 2.46c0 1.395-1.065 2.461-2.46 2.461z",fill:"#FFF",fillRule:"nonzero"})))},m.defaultLocale={strings:{smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordingLength:"Recording length %{recording_length}",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file"}};var b={onBeforeSnapshot:function(){return Promise.resolve()},countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1};return m.opts=l({},b,_),m.i18nInit(),m.install=m.install.bind(a(m)),m.setPluginState=m.setPluginState.bind(a(m)),m.render=m.render.bind(a(m)),m.start=m.start.bind(a(m)),m.stop=m.stop.bind(a(m)),m.takeSnapshot=m.takeSnapshot.bind(a(m)),m.startRecording=m.startRecording.bind(a(m)),m.stopRecording=m.stopRecording.bind(a(m)),m.discardRecordedVideo=m.discardRecordedVideo.bind(a(m)),m.submit=m.submit.bind(a(m)),m.oneTwoThreeSmile=m.oneTwoThreeSmile.bind(a(m)),m.focus=m.focus.bind(a(m)),m.changeVideoSource=m.changeVideoSource.bind(a(m)),m.webcamActive=!1,m.opts.countdown&&(m.opts.onBeforeSnapshot=m.oneTwoThreeSmile),m.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null}),m}!function(H,K){H.prototype=Object.create(K.prototype),H.prototype.constructor=H,u(H,K)}(K,H);var N=K.prototype;return N.setOptions=function(_){H.prototype.setOptions.call(this,l({},_,{videoConstraints:l({},this.opts.videoConstraints,null==_?void 0:_.videoConstraints)})),this.i18nInit()},N.i18nInit=function(){this.translator=new s([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.setPluginState()},N.hasCameraCheck=function(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then(function(_){return _.some(function(m){return"videoinput"===m.kind})}):Promise.resolve(!1)},N.isAudioOnly=function(){return 1===this.opts.modes.length&&"audio-only"===this.opts.modes[0]},N.getConstraints=function(_){var m;void 0===_&&(_=null);var b=-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),C=!this.isAudioOnly()&&(-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("video-only")||-1!==this.opts.modes.indexOf("picture")),D=l({},null!=(m=this.opts.videoConstraints)?m:{facingMode:this.opts.facingMode},_?{deviceId:_,facingMode:null}:{});return{audio:b,video:!!C&&D}},N.start=function(_){var m=this;if(void 0===_&&(_=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror=!0;var b=this.getConstraints(_&&_.deviceId?_.deviceId:null);this.hasCameraCheck().then(function(C){return m.setPluginState({hasCamera:C}),m.mediaDevices.getUserMedia(b).then(function(D){m.stream=D;var I=null,P=m.isAudioOnly()?D.getAudioTracks():D.getVideoTracks();_&&_.deviceId?P.forEach(function(B){B.getSettings().deviceId===_.deviceId&&(I=B.getSettings().deviceId)}):I=P[0].getSettings().deviceId,m.updateVideoSources(),m.setPluginState({currentDeviceId:I,cameraReady:!0})}).catch(function(D){m.setPluginState({cameraReady:!1,cameraError:D}),m.uppy.info(D.message,"error")})})},N.getMediaRecorderOptions=function(){var _={};
1if(MediaRecorder.isTypeSupported){var m=this.uppy.opts.restrictions,b=[];this.opts.preferredVideoMimeType?b=[this.opts.preferredVideoMimeType]:m.allowedFileTypes&&(b=m.allowedFileTypes.map(y).filter(S));var D=b.filter(function(P){return MediaRecorder.isTypeSupported(P)&&r(P)});D.length>0&&(_.mimeType=D[0])}return _},N.startRecording=function(){var _=this;this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];var m=!1;this.recorder.addEventListener("dataavailable",function(b){_.recordingChunks.push(b.data);var C=_.uppy.opts.restrictions;if(_.recordingChunks.length>1&&null!=C.maxFileSize&&!m){var D=_.recordingChunks.reduce(function(p,Y){return p+Y.size},0),P=3*((D-_.recordingChunks[0].size)/(_.recordingChunks.length-1));D>Math.max(0,C.maxFileSize-P)&&(m=!0,_.uppy.info(_.i18n("recordingStoppedMaxSize"),"warning",4e3),_.stopRecording())}}),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval(function(){var b=_.getPluginState().recordingLengthSeconds;_.setPluginState({recordingLengthSeconds:b+1})},1e3)),this.setPluginState({isRecording:!0})},N.stopRecording=function(){var _=this;return new Promise(function(b){_.recorder.addEventListener("stop",function(){b()}),_.recorder.stop(),_.opts.showRecordingLength&&(clearInterval(_.recordingLengthTimer),_.setPluginState({recordingLengthSeconds:0}))}).then(function(){return _.setPluginState({isRecording:!1}),_.getVideo()}).then(function(b){try{_.capturedMediaFile=b,_.setPluginState({recordedVideo:URL.createObjectURL(b.data)}),_.opts.mirror=!1}catch(C){C.isRestriction||_.uppy.log(C)}}).then(function(){_.recordingChunks=null,_.recorder=null},function(b){throw _.recordingChunks=null,_.recorder=null,b})},N.discardRecordedVideo=function(){this.setPluginState({recordedVideo:null}),this.opts.mirror=!0,this.capturedMediaFile=null},N.submit=function(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(_){_.isRestriction||this.uppy.log(_,"error")}},N.stop=function(){this.stream&&(this.stream.getAudioTracks().forEach(function(_){_.stop()}),this.stream.getVideoTracks().forEach(function(_){_.stop()})),this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null})},N.getVideoElement=function(){return this.el.querySelector(".uppy-Webcam-video")},N.oneTwoThreeSmile=function(){var _=this;return new Promise(function(m,b){var C=_.opts.countdown,D=setInterval(function(){if(!_.webcamActive)return clearInterval(D),_.captureInProgress=!1,b(new Error("Webcam is not active"));C>0?(_.uppy.info(C+"...","warning",800),C--):(clearInterval(D),_.uppy.info(_.i18n("smile"),"success",1500),setTimeout(function(){return m()},1500))},1e3)})},N.takeSnapshot=function(){var _=this;this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(function(m){var b="object"==typeof m?m.message:m;return _.uppy.info(b,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: "+b))}).then(function(){return _.getImage()}).then(function(m){_.captureInProgress=!1;try{_.uppy.addFile(m)}catch(b){b.isRestriction||_.uppy.log(b)}},function(m){throw _.captureInProgress=!1,m}))},N.getImage=function(){var _=this,m=this.getVideoElement();if(!m)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));var b=m.videoWidth,C=m.videoHeight,D=document.createElement("canvas");D.width=b,D.height=C,D.getContext("2d").drawImage(m,0,0);var P=this.uppy.opts.restrictions,B=[];this.opts.preferredImageMimeType?B=[this.opts.preferredImageMimeType]:P.allowedFileTypes&&(B=P.allowedFileTypes.map(y).filter(x));var p=B[0]||"image/jpeg",Y=r(p)||"jpg",j="cam-"+Date.now()+"."+Y;return g(D,p).then(function(ee){return{source:_.id,name:j,data:new Blob([ee],{type:p}),type:p}})},N.getVideo=function(){var _=this.recordingChunks.find(function(I){var P;return(null==(P=I.type)?void 0:P.length)>0}).type,m=r(_);if(!m)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'+_+'"'));var b="webcam-"+Date.now()+"."+m,C=new Blob(this.recordingChunks,{type:_}),D={source:this.id,name:b,data:new Blob([C],{type:_}),type:_};return Promise.resolve(D)},N.focus=function(){var _=this;!this.opts.countdown||setTimeout(function(){_.uppy.info(_.i18n("smile"),"success",1500)},1e3)},N.changeVideoSource=function(_){this.stop(),this.start({deviceId:_})},N.updateVideoSources=function(){var _=this;this.mediaDevices.enumerateDevices().then(function(m){_.setPluginState({videoSources:m.filter(function(b){return"videoinput"===b.kind})})})},N.render=function(){this.webcamActive||this.start();var _=this.getPluginState();return _.cameraReady&&_.hasCamera?t(U,l({},_,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:A(),recording:_.isRecording,mirror:this.opts.mirror,src:this.stream})):t(F,{icon:w,i18n:this.i18n,hasCamera:_.hasCamera})},N.install=function(){var _=this;this.setPluginState({cameraReady:!1,recordingLengthSeconds:0});var m=this.opts.target;m&&this.mount(m,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=function(){if(_.updateVideoSources(),_.stream){var b=!0,C=_.getPluginState(),D=C.videoSources,I=C.currentDeviceId;D.forEach(function(P){I===P.deviceId&&(b=!1)}),b&&(_.stop(),_.start())}})},N.uninstall=function(){this.stream&&this.stop(),this.unmount()},K}(i),o.VERSION="1.8.13",n)},50343:O=>{O.exports=function(){return"function"==typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"==typeof MediaRecorder.prototype.start}},27092:(O,v,e)=>{var o,n;
1function d(N,R){return(d=Object.setPrototypeOf||function(m,b){return m.__proto__=b,m})(N,R)}function u(){return u=Object.assign||function(N){for(var R=1;R<arguments.length;R++){var _=arguments[R];for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(N[m]=_[m])}return N},u.apply(this,arguments)}var t=e(79684).Plugin,h=e(75816),i=e(30831),s=e(95290),r=s.Provider,f=s.RequestClient,g=s.Socket,A=e(29137),w=e(70207),U=e(96330),F=e(14666),y=e(39770),S=e(33172),x=e(7246),L=e(63424);function H(N,R){return R||(R=new Error("Upload error")),"string"==typeof R&&(R=new Error(R)),R instanceof Error||(R=u(new Error("Upload error"),{data:R})),L(N)?R=new x(R,N):(R.request=N,R)}function K(N){return N.data.slice(0,N.data.size,N.meta.type)}O.exports=(n=o=function(N){function R(m,b){var C;(C=N.call(this,m,b)||this).type="uploader",C.id=C.opts.id||"XHRUpload",C.title="XHRUpload",C.defaultLocale={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};var D={formData:!0,fieldName:"files[]",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:0,withCredentials:!1,responseType:"",getResponseData:function(P,B){var p={};try{p=JSON.parse(P)}catch(Y){console.log(Y)}return p},getResponseError:function(P,B){var p=new Error("Upload error");return L(B)&&(p=new x(p,B)),p},validateStatus:function(P,B,p){return P>=200&&P<300}};if(C.opts=u({},D,b),C.i18nInit(),C.handleUpload=C.handleUpload.bind(function(N){if(void 0===N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(C)),C.opts.__queue instanceof S?C.requests=C.opts.__queue:C.requests=new S(C.opts.limit),C.opts.bundle&&!C.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");return C.uploaderEvents=Object.create(null),C}!function(N,R){N.prototype=Object.create(R.prototype),N.prototype.constructor=N,d(N,R)}(R,N);var _=R.prototype;return _.setOptions=function(b){N.prototype.setOptions.call(this,b),this.i18nInit()},_.i18nInit=function(){this.translator=new i([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},_.getOptions=function(b){var C=this.uppy.getState().xhrUpload,D=this.opts.headers,I=u({},this.opts,C||{},b.xhrUpload||{},{headers:{}});return"function"==typeof D?I.headers=D(b):u(I.headers,this.opts.headers),C&&u(I.headers,C.headers),b.xhrUpload&&u(I.headers,b.xhrUpload.headers),I},_.addMetadata=function(b,C,D){(Array.isArray(D.metaFields)?D.metaFields:Object.keys(C)).forEach(function(P){b.append(P,C[P])})},_.createFormDataUpload=function(b,C){var D=new FormData;this.addMetadata(D,b.meta,C);var I=K(b);return b.name?D.append(C.fieldName,I,b.meta.name):D.append(C.fieldName,I),D},_.createBundledUpload=function(b,C){var D=this,I=new FormData,B=this.uppy.getState().meta;return this.addMetadata(I,B,C),b.forEach(function(p){var Y=D.getOptions(p),j=K(p);p.name?I.append(Y.fieldName,j,p.name):I.append(Y.fieldName,j)}),I},_.createBareUpload=function(b,C){return b.data},_.upload=function(b,C,D){var I=this,P=this.getOptions(b);
1return this.uppy.log("uploading "+C+" of "+D),new Promise(function(B,p){I.uppy.emit("upload-started",b);var Y=P.formData?I.createFormDataUpload(b,P):I.createBareUpload(b,P),j=new XMLHttpRequest;I.uploaderEvents[b.id]=new F(I.uppy);var ee=new y(P.timeout,function(){j.abort(),se.done();var le=new Error(I.i18n("timedOut",{seconds:Math.ceil(P.timeout/1e3)}));I.uppy.emit("upload-error",b,le),p(le)}),ne=h();j.upload.addEventListener("loadstart",function(le){I.uppy.log("[XHRUpload] "+ne+" started")}),j.upload.addEventListener("progress",function(le){I.uppy.log("[XHRUpload] "+ne+" progress: "+le.loaded+" / "+le.total),ee.progress(),le.lengthComputable&&I.uppy.emit("upload-progress",b,{uploader:I,bytesUploaded:le.loaded,bytesTotal:le.total})}),j.addEventListener("load",function(le){if(I.uppy.log("[XHRUpload] "+ne+" finished"),ee.done(),se.done(),I.uploaderEvents[b.id]&&(I.uploaderEvents[b.id].remove(),I.uploaderEvents[b.id]=null),P.validateStatus(le.target.status,j.responseText,j)){var he=P.getResponseData(j.responseText,j),ve=he[P.responseUrlFieldName],z={status:le.target.status,body:he,uploadURL:ve};return I.uppy.emit("upload-success",b,z),ve&&I.uppy.log("Download "+b.name+" from "+ve),B(b)}var te=P.getResponseData(j.responseText,j),me=H(j,P.getResponseError(j.responseText,j)),ce={status:le.target.status,body:te};return I.uppy.emit("upload-error",b,me,ce),p(me)}),j.addEventListener("error",function(le){I.uppy.log("[XHRUpload] "+ne+" errored"),ee.done(),se.done(),I.uploaderEvents[b.id]&&(I.uploaderEvents[b.id].remove(),I.uploaderEvents[b.id]=null);var he=H(j,P.getResponseError(j.responseText,j));return I.uppy.emit("upload-error",b,he),p(he)}),j.open(P.method.toUpperCase(),P.endpoint,!0),j.withCredentials=P.withCredentials,""!==P.responseType&&(j.responseType=P.responseType);var se=I.requests.run(function(){var le=I.getOptions(b);return Object.keys(le.headers).forEach(function(he){j.setRequestHeader(he,le.headers[he])}),j.send(Y),function(){ee.done(),j.abort()}});I.onFileRemove(b.id,function(){se.abort(),p(new Error("File removed"))}),I.onCancelAll(b.id,function(){se.abort(),p(new Error("Upload cancelled"))})})},_.uploadRemote=function(b,C,D){var I=this,P=this.getOptions(b);return new Promise(function(B,p){I.uppy.emit("upload-started",b);var Y={};(Array.isArray(P.metaFields)?P.metaFields:Object.keys(b.meta)).forEach(function(se){Y[se]=b.meta[se]}),new(b.remote.providerOptions.provider?r:f)(I.uppy,b.remote.providerOptions).post(b.remote.url,u({},b.remote.body,{endpoint:P.endpoint,size:b.data.size,fieldname:P.fieldName,metadata:Y,httpMethod:P.method,useFormData:P.formData,headers:P.headers})).then(function(se){var le=se.token,he=w(b.remote.companionUrl),ve=new g({target:he+"/api/"+le,autoOpen:!1});I.uploaderEvents[b.id]=new F(I.uppy),I.onFileRemove(b.id,function(){ve.send("pause",{}),z.abort(),B("upload "+b.id+" was removed")}),I.onCancelAll(b.id,function(){ve.send("pause",{}),z.abort(),B("upload "+b.id+" was canceled")}),I.onRetry(b.id,function(){ve.send("pause",{}),ve.send("resume",{})}),I.onRetryAll(b.id,function(){ve.send("pause",{}),ve.send("resume",{})}),ve.on("progress",function(te){return A(I,te,b)}),ve.on("success",function(te){var me=P.getResponseData(te.response.responseText,te.response),ce=me[P.responseUrlFieldName],we={status:te.response.status,body:me,uploadURL:ce};return I.uppy.emit("upload-success",b,we),z.done(),I.uploaderEvents[b.id]&&(I.uploaderEvents[b.id].remove(),I.uploaderEvents[b.id]=null),B()}),ve.on("error",function(te){var me=te.response,ce=me?P.getResponseError(me.responseText,me):u(new Error(te.error.message),{cause:te.error});I.uppy.emit("upload-error",b,ce),z.done(),I.uploaderEvents[b.id]&&(I.uploaderEvents[b.id].remove(),I.uploaderEvents[b.id]=null),p(ce)});var z=I.requests.run(function(){return ve.open(),b.isPaused&&ve.send("pause",{}),function(){return ve.close()}})}).catch(function(se){I.uppy.emit("upload-error",b,se),p(se)})})},_.uploadBundle=function(b){var C=this;return new Promise(function(D,I){var P=C.opts.endpoint,B=C.opts.method,p=C.uppy.getState().xhrUpload,Y=C.createBundledUpload(b,u({},C.opts,p||{})),j=new XMLHttpRequest,ee=new y(C.opts.timeout,function(){j.abort();var se=new Error(C.i18n("timedOut",{seconds:Math.ceil(C.opts.timeout/1e3)}));ne(se),I(se)}),ne=function(le){b.forEach(function(he){C.uppy.emit("upload-error",he,le)})};j.upload.addEventListener("loadstart",function(se){C.uppy.log("[XHRUpload] started uploading bundle"),ee.progress()}),j.upload.addEventListener("progress",function(se){ee.progress(),se.lengthComputable&&b.forEach(function(le){C.uppy.emit("upload-progress",le,{uploader:C,bytesUploaded:se.loaded/se.total*le.size,bytesTotal:le.size})})}),j.addEventListener("load",function(se){if(ee.done(),C.opts.validateStatus(se.target.status,j.responseText,j)){var le=C.opts.getResponseData(j.responseText,j),he={status:se.target.status,body:le};return b.forEach(function(z){C.uppy.emit("upload-success",z,he)}),D()}var ve=C.opts.getResponseError(j.responseText,j)||new Error("Upload error");return ve.request=j,ne(ve),I(ve)}),j.addEventListener("error",function(se){ee.done();var le=C.opts.getResponseError(j.responseText,j)||new Error("Upload error");return ne(le),I(le)}),C.uppy.on("cancel-all",function(){ee.done(),j.abort()}),j.open(B.toUpperCase(),P,!0),j.withCredentials=C.opts.withCredentials,""!==C.opts.responseType&&(j.responseType=C.opts.responseType),Object.keys(C.opts.headers).forEac
1h(function(se){j.setRequestHeader(se,C.opts.headers[se])}),j.send(Y),b.forEach(function(se){C.uppy.emit("upload-started",se)})})},_.uploadFiles=function(b){var C=this,D=b.map(function(I,P){var B=parseInt(P,10)+1,p=b.length;return I.error?Promise.reject(new Error(I.error)):I.isRemote?C.uploadRemote(I,B,p):C.upload(I,B,p)});return U(D)},_.onFileRemove=function(b,C){this.uploaderEvents[b].on("file-removed",function(D){b===D.id&&C(D.id)})},_.onRetry=function(b,C){this.uploaderEvents[b].on("upload-retry",function(D){b===D&&C()})},_.onRetryAll=function(b,C){var D=this;this.uploaderEvents[b].on("retry-all",function(I){!D.uppy.getFile(b)||C()})},_.onCancelAll=function(b,C){var D=this;this.uploaderEvents[b].on("cancel-all",function(){!D.uppy.getFile(b)||C()})},_.handleUpload=function(b){var C=this;if(0===b.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0===this.opts.limit&&!this.opts.__queue&&this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");var D=b.map(function(P){return C.uppy.getFile(P)});if(this.opts.bundle){if(D.some(function(P){return P.isRemote}))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(D)}return this.uploadFiles(D).then(function(){return null})},_.install=function(){if(this.opts.bundle){var C=this.uppy.getState().capabilities;this.uppy.setState({capabilities:u({},C,{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)},_.uninstall=function(){if(this.opts.bundle){var C=this.uppy.getState().capabilities;this.uppy.setState({capabilities:u({},C,{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)},R}(t),o.VERSION="1.7.5",n)},53661:O=>{function e(){}O.exports=function(o,n,l){var a=!1;return l=l||e,d.count=o,0===o?n():d;function d(u,c){if(d.count<=0)throw new Error("after called too many times");--d.count,u?(a=!0,n(u),n=l):0===d.count&&!a&&n(null,c)}}},53853:O=>{O.exports=function(v,e,o){var n=v.byteLength;if(e=e||0,o=o||n,v.slice)return v.slice(e,o);if(e<0&&(e+=n),o<0&&(o+=n),o>n&&(o=n),e>=n||e>=o||0===n)return new ArrayBuffer(0);for(var l=new Uint8Array(v),a=new Uint8Array(o-e),d=e,u=0;d<o;d++,u++)a[u]=l[d];return a.buffer}},7591:O=>{function v(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}O.exports=v,v.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),n=Math.floor(o*this.jitter*e);e=0==(1&Math.floor(10*o))?e-n:e+n}return 0|Math.min(e,this.max)},v.prototype.reset=function(){this.attempts=0},v.prototype.setMin=function(e){this.ms=e},v.prototype.setMax=function(e){this.max=e},v.prototype.setJitter=function(e){this.jitter=e}},83084:O=>{var v=void 0!==v?v:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,e=function(){try{return 2===new Blob(["hi"]).size}catch(c){return!1}}(),o=e&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(c){return!1}}(),n=v&&v.prototype.append&&v.prototype.getBlob;function l(u){return u.map(function(c){if(c.buffer instanceof ArrayBuffer){var t=c.buffer;if(c.byteLength!==t.byteLength){var h=new Uint8Array(c.byteLength);h.set(new Uint8Array(t,c.byteOffset,c.byteLength)),t=h.buffer}return t}return c})}function a(u,c){c=c||{};var t=new v;return l(u).forEach(function(h){t.append(h)}),c.type?t.getBlob(c.type):t.getBlob()}function d(u,c){return new Blob(l(u),c||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,d.prototype=Blob.prototype),O.exports=e?o?Blob:d:n?a:void 0},82885:(O,v)=>{var e,o; 2/*! 3 Copyright (c) 2018 Jed Watson. 4 Licensed under the MIT License (MIT), see 5 http://jedwatson.github.io/classnames 6 */!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var a=[],d=0;d<arguments.length;d++){var u=arguments[d];if(u){var c=typeof u;if("string"===c||"number"===c)a.push(u);else if(Array.isArray(u)){if(u.length){var t=l.apply(null,u);t&&a.push(t)}}else if("object"===c)if(u.toString===Object.prototype.toString)for(var h in u)n.call(u,h)&&u[h]&&a.push(h);else a.push(u.toString())}}return a.join(" ")}
6O.exports?(l.default=l,O.exports=l):(e=[],void 0!==(o=function(){return l}.apply(v,e))&&(O.exports=o))}()},59782:O=>{var v=[].slice;O.exports=function(e,o){if("string"==typeof o&&(o=e[o]),"function"!=typeof o)throw new Error("bind() requires a function");var n=v.call(arguments,2);return function(){return o.apply(e,n.concat(v.call(arguments)))}}},65899:O=>{function v(o){if(o)return function(o){for(var n in v.prototype)o[n]=v.prototype[n];return o}(o)}O.exports=v,v.prototype.on=v.prototype.addEventListener=function(o,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(n),this},v.prototype.once=function(o,n){function l(){this.off(o,l),n.apply(this,arguments)}return l.fn=n,this.on(o,l),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(o,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+o];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+o],this;for(var a,d=0;d<l.length;d++)if((a=l[d])===n||a.fn===n){l.splice(d,1);break}return 0===l.length&&delete this._callbacks["$"+o],this},v.prototype.emit=function(o){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),l=this._callbacks["$"+o],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(l){a=0;for(var d=(l=l.slice(0)).length;a<d;++a)l[a].apply(this,n)}return this},v.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]},v.prototype.hasListeners=function(o){return!!this.listeners(o).length}},23338:O=>{O.exports=function(v,e){var o=function(){};o.prototype=e.prototype,v.prototype=new o,v.prototype.constructor=v}},75816:(O,v,e)=>{var o=e(37570),n=e(59638),l=e(15321),a=0,c=Math.pow(36,4);function t(){return n((l()*c<<0).toString(36),4)}function h(){return a=a<c?a:0,++a-1}function i(){return"c"+(new Date).getTime().toString(36)+n(h().toString(36),4)+o()+(t()+t())}i.slug=function(){var r=(new Date).getTime().toString(36),f=h().toString(36).slice(-4),g=o().slice(0,1)+o().slice(-1),A=t().slice(-2);return r.slice(-2)+f+g+A},i.isCuid=function(r){return"string"==typeof r&&!!r.startsWith("c")},i.isSlug=function(r){if("string"!=typeof r)return!1;var f=r.length;return f>=7&&f<=10},i.fingerprint=o,O.exports=i},37570:(O,v,e)=>{var o=e(59638),n="object"==typeof window?window:self,l=Object.keys(n).length,d=o(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+l.toString(36),4);O.exports=function(){return d}},15321:O=>{var v,e="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(e){var o=Math.pow(2,32)-1;v=function(){return Math.abs(e.getRandomValues(new Uint32Array(1))[0]/o)}}else v=Math.random;O.exports=v},59638:O=>{O.exports=function(e,o){var n="000000000"+e;return n.substr(n.length-o)}},98338:(O,v,e)=>{O.exports=e(21547),O.exports.parser=e(79196)},21547:(O,v,e)=>{var o=e(41674),n=e(10334),l=e(731)("engine.io-client:socket"),a=e(37736),d=e(79196),u=e(44171),c=e(39603);function t(i,s){if(!(this instanceof t))return new t(i,s);s=s||{},i&&"object"==typeof i&&(s=i,i=null),i?(i=u(i),s.hostname=i.host,s.secure="https"===i.protocol||"wss"===i.protocol,s.port=i.port,i.query&&(s.query=i.query)):s.host&&(s.hostname=u(s.host).host),this.secure=null!=s.secure?s.secure:"undefined"!=typeof location&&"https:"===location.protocol,s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.agent=s.agent||!1,this.hostname=s.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=s.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=s.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==s.upgrade,this.path=(s.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!s.forceJSONP,this.jsonp=!1!==s.jsonp,this.forceBase64=!!s.forceBase64,this.enablesXDR=!!s.enablesXDR,this.timestampParam=s.timestampParam||"t",this.timestampRequests=s.timestampRequests,this.transports=s.transports||["polling","websocket"],this.transportOptions=s.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=s.policyPort||843,this.rememberUpgrade=s.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=s.onlyBinaryUpgrades,this.perMessageDeflate=!1!==s.perMessageDeflate&&(s.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=s.pfx||null,this.key=s.key||null,this.passphrase=s.passphrase||null,this.cert=s.cert||null,this.ca=s.ca||null,this.ciphers=s.ciphers||null,this.rejectUnauthorized=void 0===s.rejectUnauthorized||s.rejectUnauthorized,this.forceNo
vendor: 21,653 bytes, line 6
6de=!!s.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(s.extraHeaders&&Object.keys(s.extraHeaders).length>0&&(this.extraHeaders=s.extraHeaders),s.localAddress&&(this.localAddress=s.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}O.exports=t,t.priorWebsocketSuccess=!1,n(t.prototype),t.protocol=d.protocol,t.Socket=t,t.Transport=e(31505),t.transports=e(41674),t.parser=e(79196),t.prototype.createTransport=function(i){l('creating transport "%s"',i);var s=function(i){var s={};for(var r in i)i.hasOwnProperty(r)&&(s[r]=i[r]);return s}(this.query);s.EIO=d.protocol,s.transport=i;var r=this.transportOptions[i]||{};return this.id&&(s.sid=this.id),new o[i]({query:s,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative})},t.prototype.open=function(){var i;if(this.rememberUpgrade&&t.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))i="websocket";else{if(0===this.transports.length){var s=this;return void setTimeout(function(){s.emit("error","No transports available")},0)}i=this.transports[0]}this.readyState="opening";try{i=this.createTransport(i)}catch(r){return this.transports.shift(),void this.open()}i.open(),this.setTransport(i)},t.prototype.setTransport=function(i){l("setting transport %s",i.name);var s=this;this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=i,i.on("drain",function(){s.onDrain()}).on("packet",function(r){s.onPacket(r)}).on("error",function(r){s.onError(r)}).on("close",function(){s.onClose("transport close")})},t.prototype.probe=function(i){l('probing transport "%s"',i);var s=this.createTransport(i,{probe:1}),r=!1,f=this;function g(){if(f.onlyBinaryUpgrades){var x=!this.supportsBinary&&f.transport.supportsBinary;r=r||x}r||(l('probe transport "%s" opened',i),s.send([{type:"ping",data:"probe"}]),s.once("packet",function(L){if(!r)if("pong"===L.type&&"probe"===L.data){if(l('probe transport "%s" pong',i),f.upgrading=!0,f.emit("upgrading",s),!s)return;t.priorWebsocketSuccess="websocket"===s.name,l('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){r||"closed"!==f.readyState&&(l("changing transport and sending upgrade packet"),S(),f.setTransport(s),s.send([{type:"upgrade"}]),f.emit("upgrade",s),s=null,f.upgrading=!1,f.flush())})}else{l('probe transport "%s" failed',i);var H=new Error("probe error");H.transport=s.name,f.emit("upgradeError",H)}}))}function A(){r||(r=!0,S(),s.close(),s=null)}function w(x){var L=new Error("probe error: "+x);L.transport=s.name,A(),l('probe transport "%s" failed because of error: %s',i,x),f.emit("upgradeError",L)}function U(){w("transport closed")}function F(){w("socket closed")}function y(x){s&&x.name!==s.name&&(l('"%s" works - aborting "%s"',x.name,s.name),A())}function S(){s.removeListener("open",g),s.removeListener("error",w),s.removeListener("close",U),f.removeListener("close",F),f.removeListener("upgrading",y)}t.priorWebsocketSuccess=!1,s.once("open",g),s.once("error",w),s.once("close",U),this.once("close",F),this.once("upgrading",y),s.open()},t.prototype.onOpen=function(){if(l("socket open"),this.readyState="open",t.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){l("starting upgrade probes");for(var i=0,s=this.upgrades.length;i<s;i++)this.probe(this.upgrades[i])}},t.prototype.onPacket=function(i){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(l('socket receive: type "%s", data "%s"',i.type,i.data),this.emit("packet",i),this.emit("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var s=new Error("server error");s.code=i.data,this.onError(s);break;case"message":this.emit("data",i.data),this.emit("message",i.data)}else l('packet received with socket readyState "%s"',this.readyState)},t.prototype.onHandshake=function(i){this.emit("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this.upgrades=this.filterUpgrades(i.upgrades),this.pingInterval=i.pingInterval,this.pingTimeout=i.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},t.prototype.onHeartbeat=function(i){clearTimeout(this.pingTimeoutTimer);var s=this;s.pingTimeoutTimer=setTimeout(function(){"closed"!==s.readyState&&s.onClose("ping timeout")},i||s.pingInterval+s.pingTimeout)},t.prototype.setPing=function(){var i=this;clearTimeout(i.pingIntervalTimer),i.pingIntervalTimer=setTimeout(function(){l("writing ping packet - expecting pong within %sms",i.pingTimeout),i.ping(),i.onHeartbeat(i.pingTimeout)},i.pingInterval)},t.prototype.ping=function(){var i=this;this.sendPacket("ping",function(){i.emit("ping")})},t.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},t.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(l("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},t.prototype.write=t.prototype.send=function(i,s,r){return this.sendPacket("message",i,s,r),this},t.prototype.sendPacket=function(i,s,r,f){if("function"==typeof s&&(f=s,s=void 0),"function"==typeof r&&(f=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress;var g={type:i,data:s,options:r};this.emit("packetCreate",g),this.writeBuffer.push(g),f&&this.once("flush",f),this.flush()}},t.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var i=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?f():s()}):this.upgrading?f():s()}function s(){i.onClose("forced close"),l("socket closing - telling transport to close"),i.transport.close()}function r(){i.removeListener("upgrade",r),i.removeListener("upgradeError",r),s()}function f(){i.once("upgrade",r),i.once("upgradeError",r)}return this},t.prototype.onError=function(i){l("socket error %j",i),t.priorWebsocketSuccess=!1,this.emit("error",i),this.onClose("transport error",i)},t.prototype.onClose=function(i,s){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){l('socket close with reason: "%s"',i);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",i,s),this.writeBuffer=[],this.prevBufferLen=0}},t.prototype.filterUpgrades=function(i){for(var s=[],r=0,f=i.length;r<f;r++)~a(this.transports,i[r])&&s.push(i[r]);return s}},31505:(O,v,e)=>{var o=e(79196),n=e(10334);function l(a){this.path=a.path,this.hostname=a.hostname,this.port=a.port,this.secure=a.secure,this.query=a.query,this.timestampParam=a.timestampParam,this.timestampRequests=a.timestampRequests,this.readyState="",this.agent=a.agent||!1,this.socket=a.socket,this.enablesXDR=a.enablesXDR,this.pfx=a.pfx,this.key=a.key,this.passphrase=a.passphrase,this.cert=a.cert,this.ca=a.ca,this.ciphers=a.ciphers,this.rejectUnauthorized=a.rejectUnauthorized,this.forceNode=a.forceNode,this.isReactNative=a.isReactNative,this.extraHeaders=a.extraHeaders,this.localAddress=a.localAddress}O.exports=l,n(l.prototype),l.prototype.onError=function(a,d){var u=new Error(a);return u.type="TransportError",u.description=d,this.emit("error",u),this},l.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},l.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},l.prototype.send=function(a){if("open"!==this.readyState)throw new Error("Transport not open");this.write(a)},l.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},l.prototype.onData=function(a){var d=o.decodePacket(a,this.socket.binaryType);this.onPacket(d)},l.prototype.onPacket=function(a){this.emit("packet",a)},l.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},41674:(O,v,e)=>{var o=e(71737),n=e(95706),l=e(97662),a=e(49677);v.polling=function(u){var t=!1,h=!1,i=!1!==u.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,r=location.port;r||(r=s?443:80),t=u.hostname!==location.hostname||r!==u.port,h=u.secure!==s}if(u.xdomain=t,u.xscheme=h,"open"in new o(u)&&!u.forceJSONP)return new n(u);if(!i)throw new Error("JSONP disabled");return new l(u)},v.websocket=a},97662:(O,v,e)=>{var o=e(7685),n=e(23338);O.exports=t;var d,l=/\n/g,a=/\\n/g;function u(){}function t(h){if(o.call(this,h),this.query=this.query||{},!d){var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};d=i.___eio=i.___eio||[]}this.index=d.length;var s=this;d.push(function(r){s.onData(r)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){s.script&&(s.script.onerror=u)},!1)}n(t,o),t.prototype.supportsBinary=!1,t.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},t.prototype.doPoll=function(){var h=this,i=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),i.async=!0,i.src=this.uri(),i.onerror=function(f){h.onError("jsonp poll error",f)};var s=document.getElementsByTagName("script")[0];s?s.parentNode.insertBefore(i,s):(document.head||document.body).appendChild(i),this.script=i,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var f=document.createElement("iframe");document.body.appendChild(f),document.body.removeChild(f)},100)},t.prototype.doWrite=function(h,i){var s=this;if(!this.form){var A,r=document.createElement("form"),f=document.createElement("textarea"),g=this.iframeId="eio_iframe_"+this.index;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=g,r.method="POST",r.setAttribute("accept-charset","utf-8"),f.name="d",r.appendChild(f),document.body.appendChild(r),this.form=r,this.area=f}function w(){U(),i()}function U(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(y){s.onError("jsonp polling iframe removal error",y)}try{var F='<iframe src="javascript:0" name="'+s.iframeId+'">';A=document.createElement(F)}catch(y){(A=document.createElement("iframe")).name=s.iframeId,A.src="javascript:0"}A.id=s.iframeId,s.form.appendChild(A),s.iframe=A}this.form.action=this.uri(),U(),h=h.replace(a,"\\\n"),this.area.value=h.replace(l,"\\n");try{this.form.submit()}catch(F){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===s.iframe.readyState&&w()}:this.iframe.onload=w}},95706:(O,v,e)=>{var o=e(71737),n=e(7685),l=e(10334),a=e(23338),d=e(731)("engine.io-client:polling-xhr");function u(){}function c(s){if(n.call(this,s),this.requestTimeout=s.requestTimeout,this.extraHeaders=s.extraHeaders,"undefined"!=typeof location){var r="https:"===location.protocol,f=location.port;f||(f=r?443:80),this.xd="undefined"!=typeof location&&s.hostname!==location.hostname||f!==s.port,this.xs=s.secure!==r}}function t(s){this.method=s.method||"GET",this.uri=s.uri,this.xd=!!s.xd,this.xs=!!s.xs,this.async=!1!==s.async,this.data=void 0!==s.data?s.data:null,this.agent=s.agent,this.isBinary=s.isBinary,this.supportsBinary=s.supportsBinary,this.enablesXDR=s.enablesXDR,this.requestTimeout=s.requestTimeout,this.pfx=s.pfx,this.key=s.key,this.passphrase=s.passphrase,this.cert=s.cert,this.ca=s.ca,this.ciphers=s.ciphers,this.rejectUnauthorized=s.rejectUnauthorized,this.extraHeaders=s.extraHeaders,this.create()}if(O.exports=c,O.exports.Request=t,a(c,n),c.prototype.supportsBinary=!0,c.prototype.request=function(s){return(s=s||{}).uri=this.uri(),s.xd=this.xd,s.xs=this.xs,s.agent=this.agent||!1,s.supportsBinary=this.supportsBinary,s.enablesXDR=this.enablesXDR,s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized,s.requestTimeout=this.requestTimeout,s.extraHeaders=this.extraHeaders,new t(s)},c.prototype.doWrite=function(s,r){var f="string"!=typeof s&&void 0!==s,g=this.request({method:"POST",data:s,isBinary:f}),A=this;g.on("success",r),g.on("error",function(w){A.onError("xhr post error",w)}),this.sendXhr=g},c.prototype.doPoll=function(){d("xhr poll");var s=this.request(),r=this;s.on("data",function(f){r.onData(f)}),s.on("error",function(f){r.onError("xhr poll error",f)}),this.pollXhr=s},l(t.prototype),t.prototype.create=function(){var s={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized;var r=this.xhr=new o(s),f=this;try{d("xhr open %s: %s",this.method,this.uri),r.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var g in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(g)&&r.setRequestHeader(g,this.extraHeaders[g])}catch(A){}if("POST"===this.method)try{this.isBinary?r.setRequestHeader("Content-type","application/octet-stream"):r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(A){}try{r.setRequestHeader("Accept","*/*")}catch(A){}"withCredentials"in r&&(r.withCredentials=!0),this.requestTimeout&&(r.timeout=this.requestTimeout),this.hasXDR()?(r.onload=function(){f.onLoad()},r.onerror=function(){f.onError(r.responseText)}):r.onreadystatechange=function(){if(2===r.readyState)try{var A=r.getResponseHeader("Content-Type");f.supportsBinary&&"application/octet-stream"===A&&(r.responseType="arraybuffer")}catch(w){}4===r.readyState&&(200===r.status||1223===r.status?f.onLoad():setTimeout(function(){f.onError(r.status)},0))},d("xhr data %s",this.data),r.send(this.data)}catch(A){return void setTimeout(function(){f.onError(A)},0)}"undefined"!=typeof document&&(this.index=t.requestsCount++,t.requests[this.index]=this)},t.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},t.prototype.onData=function(s){this.emit("data",s),this.onSuccess()},t.prototype.onError=function(s){this.emit("error",s),this.cleanup(!0)},t.prototype.cleanup=function(s){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,s)try{this.xhr.abort()}catch(r){}"undefined"!=typeof document&&delete t.requests[this.index],this.xhr=null}},t.prototype.onLoad=function(){var s;try{var r;try{r=this.xhr.getResponseHeader("Content-Type")}catch(f){}s="application/octet-stream"===r&&this.xhr.response||this.xhr.responseText}catch(f){this.onError(f)}null!=s&&this.onData(s)},t.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},t.prototype.abort=function(){this.cleanup()},t.requestsCount=0,t.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",i);else if("function"==typeof addEventListener){var h="onpagehide"in self?"pagehide":"unload";addEventListener(h,i,!1)}function i(){for(var s in t.requests)t.requests.hasOwnProperty(s)&&t.requests[s].abort()}},7685:(O,v,e)=>{var o=e(31505),n=e(39603),l=e(79196),a=e(23338),d=e(25391),u=e(731)("engine.io-client:polling");O.exports=t;var c=null!=new(e(71737))({xdomain:!1}).responseType;function t(h){var i=h&&h.forceBase64;(!c||i)&&(this.supportsBinary=!1),o.call(this,h)}a(t,o),t.prototype.name="polling",t.prototype.doOpen=function(){this.poll()},t.prototype.pause=function(h){var i=this;function s(){u("paused"),i.readyState="paused",h()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||s()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||s()}))}else s()},t.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},t.prototype.onData=function(h){var i=this;u("polling got data %s",h);l.decodePayload(h,this.socket.binaryType,function(r,f,g){if("opening"===i.readyState&&i.onOpen(),"close"===r.type)return i.onClose(),!1;i.onPacket(r)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},t.prototype.doClose=function(){var h=this;function i(){u("writing close packet"),h.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),i()):(u("transport not open - deferring close"),this.once("open",i))},t.prototype.write=function(h){var i=this;this.writable=!1;var s=function(){i.writable=!0,i.emit("drain")};l.encodePayload(h,this.supportsBinary,function(r){i.doWrite(r,s)})},t.prototype.uri=function(){var h=this.query||{},i=this.secure?"https":"http",s="";return!1!==this.timestampRequests&&(h[this.timestampParam]=d()),!this.supportsBinary&&!h.sid&&(h.b64=1),h=n.encode(h),this.port&&("https"===i&&443!==Number(this.port)||"http"===i&&80!==Number(this.port))&&(s=":"+this.port),h.length&&(h="?"+h),i+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+s+this.path+h}},49677:(O,v,e)=>{var c,t,o=e(31505),n=e(79196),l=e(39603),a=e(23338),d=e(25391),u=e(731)("engine.io-client:websocket");if("undefined"!=typeof WebSocket)c=WebSocket;else if("undefined"!=typeof self)c=self.WebSocket||self.MozWebSocket;else try{t=e(77020)}catch(s){}var h=c||t;function i(s){s&&s.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=s.perMessageDeflate,this.usingBrowserWebSocket=c&&!s.forceNode,this.protocols=s.protocols,this.usingBrowserWebSocket||(h=t),o.call(this,s)}O.exports=i,a(i,o),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var s=this.uri(),r=this.protocols,f={agent:this.agent,perMessageDeflate:this.perMessageDeflate};f.pfx=this.pfx,f.key=this.key,f.passphrase=this.passphrase,f.cert=this.cert,f.ca=this.ca,f.ciphers=this.ciphers,f.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(f.headers=this.extraHeaders),this.localAddress&&(f.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?r?new h(s,r):new h(s):new h(s,r,f)}catch(g){return this.emit("error",g)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var s=this;this.ws.onopen=function(){s.onOpen()},this.ws.onclose=function(){s.onClose()},this.ws.onmessage=function(r){s.onData(r.data)},this.ws.onerror=function(r){s.onError("websocket error",r)}},i.prototype.write=function(s){var r=this;this.writable=!1;for(var f=s.length,g=0,A=f;g<A;g++)!function(U){n.encodePacket(U,r.supportsBinary,function(F){if(!r.usingBrowserWebSocket){var y={};if(U.options&&(y.compress=U.options.compress),r.perMessageDeflate)("string"==typeof F?Buffer.byteLength(F):F.length)<r.perMessageDeflate.threshold&&(y.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(F):r.ws.send(F,y)}catch(x){u("websocket closed before onclose event")}--f||(r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0))})}(s[g])},i.prototype.onClose=function(){o.prototype.onClose.call(this)},i.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},i.prototype.uri=function(){var s=this.query||{},r=this.secure?"wss":"ws",f="";return this.port&&("wss"===r&&443!==Number(this.port)||"ws"===r&&80!==Number(this.port))&&(f=":"+this.port),this.timestampRequests&&(s[this.timestampParam]=d()),this.supportsBinary||(s.b64=1),(s=l.encode(s)).length&&(s="?"+s),r+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+f+this.path+s},i.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===i.prototype.name)}
6},71737:(O,v,e)=>{var o=e(94966);O.exports=function(n){var l=n.xdomain,a=n.xscheme,d=n.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!l||o))return new XMLHttpRequest}catch(u){}try{if("undefined"!=typeof XDomainRequest&&!a&&d)return new XDomainRequest}catch(u){}if(!l)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(u){}}},10334:O=>{function v(o){if(o)return function(o){for(var n in v.prototype)o[n]=v.prototype[n];return o}(o)}O.exports=v,v.prototype.on=v.prototype.addEventListener=function(o,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(n),this},v.prototype.once=function(o,n){function l(){this.off(o,l),n.apply(this,arguments)}return l.fn=n,this.on(o,l),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(o,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+o];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+o],this;for(var a,d=0;d<l.length;d++)if((a=l[d])===n||a.fn===n){l.splice(d,1);break}return this},v.prototype.emit=function(o){this._callbacks=this._callbacks||{};var n=[].slice.call(arguments,1),l=this._callbacks["$"+o];if(l)for(var a=0,d=(l=l.slice(0)).length;a<d;++a)l[a].apply(this,n);return this},v.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]},v.prototype.hasListeners=function(o){return!!this.listeners(o).length}},731:(O,v,e)=>{function d(){var c;try{c=v.storage.debug}catch(t){}return!c&&"undefined"!=typeof process&&"env"in process&&(c=process.env.DEBUG),c}(v=O.exports=e(4728)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},v.formatArgs=function(c){var t=this.useColors;if(c[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+c[0]+(t?"%c ":" ")+"+"+v.humanize(this.diff),t){var h="color: "+this.color;c.splice(1,0,h,"color: inherit");var i=0,s=0;c[0].replace(/%[a-zA-Z%]/g,function(r){"%%"!==r&&(i++,"%c"===r&&(s=i))}),c.splice(s,0,h)}}
6,v.save=function(c){try{null==c?v.storage.removeItem("debug"):v.storage.debug=c}catch(t){}},v.load=d,v.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},v.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(c){}}(),v.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],v.formatters.j=function(c){try{return JSON.stringify(c)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},v.enable(d())},4728:(O,v,e)=>{function n(t){var h;function i(){if(i.enabled){var s=i,r=+new Date,f=r-(h||r);s.diff=f,s.prev=h,s.curr=r,h=r;for(var g=new Array(arguments.length),A=0;A<g.length;A++)g[A]=arguments[A];g[0]=v.coerce(g[0]),"string"!=typeof g[0]&&g.unshift("%O");var w=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(F,y){if("%%"===F)return F;w++;var S=v.formatters[y];if("function"==typeof S){var x=g[w];F=S.call(s,x),g.splice(w,1),w--}return F}),v.formatArgs.call(s,g);var U=i.log||v.log||console.log.bind(console);U.apply(s,g)}}return i.namespace=t,i.enabled=v.enabled(t),i.useColors=v.useColors(),i.color=function(t){var i,h=0;for(i in t)h=(h<<5)-h+t.charCodeAt(i),h|=0;return v.colors[Math.abs(h)%v.colors.length]}(t),i.destroy=l,"function"==typeof v.init&&v.init(i),v.instances.push(i),i}function l(){var t=v.instances.indexOf(this);return-1!==t&&(v.instances.splice(t,1),!0)}(v=O.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},v.disable=function(){v.enable("")},v.enable=function(t){v.save(t),v.names=[],v.skips=[];var h,i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(h=0;h<s;h++)!i[h]||("-"===(t=i[h].replace(/\*/g,".*?"))[0]?v.skips.push(new RegExp("^"+t.substr(1)+"$")):v.names.push(new RegExp("^"+t+"$")));for(h=0;h<v.instances.length;h++){var r=v.instances[h];r.enabled=v.enabled(r.namespace)}},v.enabled=function(t){if("*"===t[t.length-1])return!0;var h,i;for(h=0,i=v.skips.length;h<i;h++)if(v.skips[h].test(t))return!1;for(h=0,i=v.names.length;h<i;h++)if(v.names[h].test(t))return!0;return!1},v.humanize=e(25226),v.instances=[],v.names=[],v.skips=[],v.formatters={}},25226:O=>{var v=1e3,e=60*v,o=60*e,n=24*o,l=365.25*n;function c(t,h,i){if(!(t<h))return t<1.5*h?Math.floor(t/h)+" "+i:Math.ceil(t/h)+" "+i+"s"}O.exports=function(t,h){h=h||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(h){var i=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*l;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*e;case"seconds":case"second":case"secs":case"sec":case"s":return i*v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return h.long?function(t){return c(t,n,"day")||c(t,o,"hour")||c(t,e,"minute")||c(t,v,"second")||t+" ms"}(t):function(t){return t>=n?Math.round(t/n)+"d":t>=o?Math.round(t/o)+"h":t>=e?Math.round(t/e)+"m":t>=v?Math.round(t/v)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},79196:(O,v,e)=>{var u,o=e(99577),n=e(35133),l=e(53853),a=e(53661),d=e(71170);"undefined"!=typeof ArrayBuffer&&(u=e(88782));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),t="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=c||t;v.protocol=3;var i=v.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},s=o(i),r={type:"error",data:"parser error"},f=e(83084);function y(S,x,L){for(var H=new Array(S.length),K=a(S.length,L),N=function(_,m,b){x(m,function(C,D){H[_]=D,b(C,H)})},R=0;R<S.length;R++)N(R,S[R],K)}v.encodePacket=function(S,x,L,H){"function"==typeof x&&(H=x,x=!1),"function"==typeof L&&(H=L,L=null);var K=void 0===S.data?void 0:S.data.buffer||S.data;if("undefined"!=typeof ArrayBuffer&&K instanceof ArrayBuffer)return function(S,x,L){if
vendor: 3,890 bytes, line 6
6(!x)return v.encodeBase64Packet(S,L);var H=S.data,K=new Uint8Array(H),N=new Uint8Array(1+H.byteLength);N[0]=i[S.type];for(var R=0;R<K.length;R++)N[R+1]=K[R];return L(N.buffer)}(S,x,H);if(void 0!==f&&K instanceof f)return function(S,x,L){if(!x)return v.encodeBase64Packet(S,L);if(h)return function(S,x,L){if(!x)return v.encodeBase64Packet(S,L);var H=new FileReader;return H.onload=function(){v.encodePacket({type:S.type,data:H.result},x,!0,L)},H.readAsArrayBuffer(S.data)}(S,x,L);var H=new Uint8Array(1);H[0]=i[S.type];var K=new f([H.buffer,S.data]);return L(K)}(S,x,H);if(K&&K.base64)return function(S,x){var L="b"+v.packets[S.type]+S.data.data;return x(L)}(S,H);var N=i[S.type];return void 0!==S.data&&(N+=L?d.encode(String(S.data),{strict:!1}):String(S.data)),H(""+N)},v.encodeBase64Packet=function(S,x){var K,L="b"+v.packets[S.type];if(void 0!==f&&S.data instanceof f){var H=new FileReader;return H.onload=function(){var m=H.result.split(",")[1];x(L+m)},H.readAsDataURL(S.data)}try{K=String.fromCharCode.apply(null,new Uint8Array(S.data))}catch(m){for(var N=new Uint8Array(S.data),R=new Array(N.length),_=0;_<N.length;_++)R[_]=N[_];K=String.fromCharCode.apply(null,R)}return L+=btoa(K),x(L)},v.decodePacket=function(S,x,L){if(void 0===S)return r;if("string"==typeof S){if("b"===S.charAt(0))return v.decodeBase64Packet(S.substr(1),x);if(L&&!1===(S=function(S){try{S=d.decode(S,{strict:!1})}catch(x){return!1}return S}(S)))return r;var K=S.charAt(0);return Number(K)==K&&s[K]?S.length>1?{type:s[K],data:S.substring(1)}:{type:s[K]}:r}K=new Uint8Array(S)[0];var N=l(S,1);return f&&"blob"===x&&(N=new f([N])),{type:s[K],data:N}},v.decodeBase64Packet=function(S,x){var L=s[S.charAt(0)];if(!u)return{type:L,data:{base64:!0,data:S.substr(1)}};var H=u.decode(S.substr(1));return"blob"===x&&f&&(H=new f([H])),{type:L,data:H}},v.encodePayload=function(S,x,L){"function"==typeof x&&(L=x,x=null);var H=n(S);if(x&&H)return f&&!h?v.encodePayloadAsBlob(S,L):v.encodePayloadAsArrayBuffer(S,L);if(!S.length)return L("0:");y(S,function(R,_){v.encodePacket(R,!!H&&x,!1,function(m){_(null,function(R){return R.length+":"+R}(m))})},function(R,_){return L(_.join(""))})},v.decodePayload=function(S,x,L){if("string"!=typeof S)return v.decodePayloadAsBinary(S,x,L);var H;if("function"==typeof x&&(L=x,x=null),""===S)return L(r,0,1);for(var N,R,K="",_=0,m=S.length;_<m;_++){var b=S.charAt(_);if(":"===b){if(""===K||K!=(N=Number(K))||K!=(R=S.substr(_+1,N)).length)return L(r,0,1);if(R.length){if(H=v.decodePacket(R,x,!1),r.type===H.type&&r.data===H.data)return L(r,0,1);if(!1===L(H,_+N,m))return}_+=N,K=""}else K+=b}return""!==K?L(r,0,1):void 0},v.encodePayloadAsArrayBuffer=function(S,x){if(!S.length)return x(new ArrayBuffer(0));y(S,function(H,K){v.encodePacket(H,!0,!0,function(N){return K(null,N)})},function(H,K){var N=K.reduce(function(m,b){var C;return m+(C="string"==typeof b?b.length:b.byteLength).toString().length+C+2},0),R=new Uint8Array(N),_=0;return K.forEach(function(m){var b="string"==typeof m,C=m;if(b){for(var P=new Uint8Array(m.length),D=0;D<m.length;D++)P[D]=m.charCodeAt(D);C=P.buffer}R[_++]=b?0:1;var I=C.byteLength.toString();for(D=0;D<I.length;D++)R[_++]=parseInt(I[D]);R[_++]=255;for(P=new Uint8Array(C),D=0;D<P.length;D++)R[_++]=P[D]}),x(R.buffer)})},v.encodePayloadAsBlob=function(S,x){y(S,function(H,K){v.encodePacket(H,!0,!0,function(N){var R=new Uint8Array(1);if(R[0]=1,"string"==typeof N){for(var _=new Uint8Array(N.length),m=0;m<N.length;m++)_[m]=N.charCodeAt(m);N=_.buffer,R[0]=0}var C=(N instanceof ArrayBuffer?N.byteLength:N.size).toString(),D=new Uint8Array(C.length+1);for(m=0;m<C.length;m++)D[m]=parseInt(C[m]);if(D[C.length]=255,f){var I=new f([R.buffer,D.buffer,N]);K(null,I)}})},function(H,K){return x(new f(K))})},v.decodePayloadAsBinary=function(S,x,L){"function"==typeof x&&(L=x,x=null);for(var H=S,K=[];H.byteLength>0;){for(var N=new Uint8Array(H),R=0===N[0],_="",m=1;
6255!==N[m];m++){if(_.length>310)return L(r,0,1);_+=N[m]}H=l(H,2+_.length),_=parseInt(_);var b=l(H,0,_);if(R)try{b=String.fromCharCode.apply(null,new Uint8Array(b))}catch(I){var C=new Uint8Array(b);b="";for(m=0;m<C.length;m++)b+=String.fromCharCode(C[m])}K.push(b),H=l(H,_)}var D=K.length;K.forEach(function(I,P){L(v.decodePacket(I,x,!0),P,D)})}},99577:O=>{O.exports=Object.keys||function(e){var o=[],n=Object.prototype.hasOwnProperty;for(var l in e)n.call(e,l)&&o.push(l);return o}},71170:O=>{ 7/*! https://mths.be/utf8js v2.1.2 by @mathias */ 8var t,h,i,v=String.fromCharCode;function e(r){for(var w,U,f=[],g=0,A=r.length;g<A;)(w=r.charCodeAt(g++))>=55296&&w<=56319&&g<A?56320==(64512&(U=r.charCodeAt(g++)))?f.push(((1023&w)<<10)+(1023&U)+65536):(f.push(w),g--):f.push(w);return f}function n(r,f){if(r>=55296&&r<=57343){if(f)throw Error("Lone surrogate U+"+r.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(r,f){return v(r>>f&63|128)}function a(r,f){if(0==(4294967168&r))return v(r);var g="";return 0==(4294965248&r)?g=v(r>>6&31|192):0==(4294901760&r)?(n(r,f)||(r=65533),g=v(r>>12&15|224),g+=l(r,6)):0==(4292870144&r)&&(g=v(r>>18&7|240),g+=l(r,12),g+=l(r,6)),g+=v(63&r|128)}function u(){if(i>=h)throw Error("Invalid byte index");var r=255&t[i];if(i++,128==(192&r))return 63&r;throw Error("Invalid continuation byte")}function c(r){var f,U;if(i>h)throw Error("Invalid byte index");if(i==h)return!1;if(f=255&t[i],i++,0==(128&f))return f;if(192==(224&f)){if((U=(31&f)<<6|u())>=128)return U;throw Error("Invalid continuation byte")}if(224==(240&f)){if((U=(15&f)<<12|u()<<6|u())>=2048)return n(U,r)?U:65533;throw Error("Invalid continuation byte")}if(240==(248&f)&&((U=(7&f)<<18|u()<<12|u()<<6|u())>=65536&&U<=1114111))return U;throw Error("Invalid UTF-8 detected")}O.exports={version:"2.1.2",encode:function(r,f){for(var g=!1!==(f=f||{}).strict,A=e(r),w=A.length,U=-1,y="";++U<w;)y+=a(A[U],g);return y},decode:function(r,f){var g=!1!==(f=f||{}).strict;t=e(r),h=t.length,i=0;for(var w,A=[];!1!==(w=c(g));)A.push(w);return function(r){for(var A,f=r.length,g=-1,w="";++g<f;)(A=r[g])>65535&&(w+=v((A-=65536)>>>10&1023|55296),A=56320|1023&A),w+=v(A);return w}(A)}}},88782:(O,v)=>{!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(256),n=0;n<e.length;n++)o[e.charCodeAt(n)]=n;v.encode=function(l){var d,a=new Uint8Array(l),u=a.length,c="";for(d=0;d<u;d+=3)c+=e[a[d]>>2],c+=e[(3&a[d])<<4|a[d+1]>>4],c+=e[(15&a[d+1])<<2|a[d+2]>>6],c+=e[63&a[d+2]];return u%3==2?c=c.substring(0,c.length-1)+"=":u%3==1&&(c=c.substring(0,c.length-2)+"=="),c},v.decode=function(l){var u,t,h,i,s,a=.75*l.length,d=l.length,c=0;"="===l[l.length-1]&&(a--,"="===l[l.length-2]&&a--);var r=new ArrayBuffer(a),f=new Uint8Array(r);for(u=0;u<d;u+=4)t=o[l.charCodeAt(u)],h=o[l.charCodeAt(u+1)],i=o[l.charCodeAt(u+2)],s=o[l.charCodeAt(u+3)],f[c++]=t<<2|h>>4,f[c++]=(15&h)<<4|i>>2,f[c++]=(3&i)<<6|63&s;return r}}()},80927:function(O,v){!function(e){"use strict";function o(X,M){if(!(X instanceof M))throw new TypeError("Cannot call a class as a function")}function n(X,M){for(var V=0;V<M.length;V++){var E=M[V];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(X,E.key,E)}}function l(X,M,V){return M&&n(X.prototype,M),V&&n(X,V),X}function a(X,M,V){return M in X?Object.defineProperty(X,M,{value:V,enumerable:!0,configurable:!0,writable:!0}):X[M]=V,X}function d(X,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(M&&M.prototype,{constructor:{value:X,writable:!0,configurable:!0}});var V=["prototype","__proto__","caller","arguments","length","name"];Object.getOwnPropertyNames(M).forEach(function(E){-1===V.indexOf(E)&&X[E]!==M[E]&&(X[E]=M[E])}),M&&c(X,M)}function u(X){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(X)}function c(X,M){return(c=Object.setPrototypeOf||function(V,E){return V.__proto__=E,V})(X,M)}function t(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(X){return!1}}
8function h(X,M,V){return(h=t()?Reflect.construct:function(E,T,$){var ie=[null];ie.push.apply(ie,T);var oe=new(Function.bind.apply(E,ie));return $&&c(oe,$.prototype),oe}).apply(null,arguments)}function i(X){var M="function"==typeof Map?new Map:void 0;return(i=function(V){if(null===V||(E=V,-1===Function.toString.call(E).indexOf("[native code]")))return V;var E;if("function"!=typeof V)throw new TypeError("Super expression must either be null or a function");if(void 0!==M){if(M.has(V))return M.get(V);M.set(V,T)}function T(){return h(V,arguments,u(this).constructor)}return T.prototype=Object.create(V.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),c(T,V)})(X)}function s(X){if(void 0===X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function r(X,M){return!M||"object"!=typeof M&&"function"!=typeof M?s(X):M}function f(X){var M=t();return function(){var V,E=u(X);if(M){var T=u(this).constructor;V=Reflect.construct(E,arguments,T)}else V=E.apply(this,arguments);return r(this,V)}}function g(X,M,V){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(E,T,$){var ie=function(fe,be){for(;!Object.prototype.hasOwnProperty.call(fe,be)&&null!==(fe=u(fe)););return fe}(E,T);if(ie){var oe=Object.getOwnPropertyDescriptor(ie,T);return oe.get?oe.get.call($):oe.value}})(X,M,V||X)}var A=Object.values||function(X){var M=[];for(var V in X)M.push(X[V]);return M},w=Object.entries||function(X){var M=[];for(var V in X)M.push([V,X[V]]);return M},U=Object.assign||function(X){for(var M=arguments.length,V=new Array(M>1?M-1:0),E=1;E<M;E++)V[E-1]=arguments[E];return V.forEach(function(T){for(var $ in T)X[$]=T[$]}),X},F=Object.fromEntries||function(X){var M={};return y(X).forEach(function(V){var E=V[0],T=V[1];M[E]=T}),M},y=Array.from||function(X){if(X instanceof N){var M=[];return X.forEach(function(V,E){return M.push([E,V])}),M}return Array.prototype.slice.call(X)};function S(X){return-1!==this.indexOf(X)}Array.prototype.includes||(Array.prototype.includes=S),String.prototype.includes||(String.prototype.includes=S),String.prototype.startsWith||(String.prototype.startsWith=function(X){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.substring(M,M+X.length)===X}),String.prototype.endsWith||(String.prototype.endsWith=function(X){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return this.substring(M-X.length,M)===X});var x="undefined"!=typeof self?self:global,L=x.fetch||function(X){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(V,E){var T=new XMLHttpRequest;if(T.open("get",X,!0),T.responseType="arraybuffer",T.onerror=E,M.headers)for(var $ in M.headers)T.setRequestHeader($,M.headers[$]);T.onload=function(){V({ok:T.status>=200&&T.status<300,status:T.status,arrayBuffer:function(){return Promise.resolve(T.response)}})},T.send(null)})},H=function(X){var M=[];if(Object.defineProperties(M,{size:{get:function(){return this.length}},has:{value:function(E){return-1!==this.indexOf(E)}},add:{value:function(E){this.has(E)||this.push(E)}},delete:{value:function(E){if(this.has(E)){var T=this.indexOf(E);this.splice(T,1)}}}}),Array.isArray(X))for(var V=0;V<X.length;V++)M.add(X[V]);return M},K=function(X){return new N(X)},N=void 0!==x.Map&&void 0!==x.Map.prototype.keys?x.Map:function(){function X(M){if(o(this,X),this.clear(),M)for(var V=0;V<M.length;V++)this.set(M[V][0],M[V][1])}return l(X,[{key:"clear",value:function(){this._map={},this._keys=[]}},{key:"size",get:function(){return this._keys.length}},{key:"get",value:function(M){return this._map["map_"+M]}},{key:"set",value:function(M,V){return this._map["map_"+M]=V,this._keys.indexOf(M)<0&&this._keys.push(M),this}},{key:"has",value:function(M){return this._keys.indexOf(M)>=0}},{key:"delete",value:function(M){var V=this._keys.indexOf(M);return!(V<0||(delete this._map["map_"+M],this._keys.splice(V,1),0))}},{key:"keys",value:function(){return this._keys.slice(0)}},{key:"values",value:function(){var M=this;return this._keys.map(function(V){return M.get(V)})}},{key:"entries",value:function(){var M=this;return this._keys.map(function(V){return[V,M.get(V)]})}}
8,{key:"forEach",value:function(M,V){for(var E=0;E<this._keys.length;E++)M.call(V,this._map["map_"+this._keys[E]],this._keys[E],this)}}]),X}(),R="undefined"!=typeof self?self:global,_="undefined"!=typeof navigator,m=_&&"undefined"==typeof HTMLImageElement,b=!("undefined"==typeof global||"undefined"==typeof process||!process.versions||!process.versions.node),C=R.Buffer,D=!!C,I=function(X){return void 0!==X};function P(X){return void 0===X||(X instanceof N?0===X.size:0===A(X).filter(I).length)}function B(X){var M=new Error(X);throw delete M.stack,M}function p(X){var V,E,M=(E=0,(V=X).ifd0.enabled&&(E+=1024),V.exif.enabled&&(E+=2048),V.makerNote&&(E+=2048),V.userComment&&(E+=1024),V.gps.enabled&&(E+=512),V.interop.enabled&&(E+=100),V.ifd1.enabled&&(E+=1024),E+2048);return X.jfif.enabled&&(M+=50),X.xmp.enabled&&(M+=2e4),X.iptc.enabled&&(M+=14e3),X.icc.enabled&&(M+=6e3),M}var Y=function(X){return String.fromCharCode.apply(null,X)},j="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;function ee(X){return j?j.decode(X):D?Buffer.from(X).toString("utf8"):decodeURIComponent(escape(Y(X)))}var ne=function(){function X(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2?arguments[2]:void 0,T=arguments.length>3?arguments[3]:void 0;if(o(this,X),"boolean"==typeof T&&(this.le=T),Array.isArray(M)&&(M=new Uint8Array(M)),0===M)this.byteOffset=0,this.byteLength=0;else if(M instanceof ArrayBuffer){void 0===E&&(E=M.byteLength-V);var $=new DataView(M,V,E);this._swapDataView($)}else if(M instanceof Uint8Array||M instanceof DataView||M instanceof X){void 0===E&&(E=M.byteLength-V),(V+=M.byteOffset)+E>M.byteOffset+M.byteLength&&B("Creating view outside of available memory in ArrayBuffer");var ie=new DataView(M.buffer,V,E);this._swapDataView(ie)}else if("number"==typeof M){var oe=new DataView(new ArrayBuffer(M));this._swapDataView(oe)}else B("Invalid input argument for BufferView: "+M)}return l(X,[{key:"_swapArrayBuffer",value:function(M){this._swapDataView(new DataView(M))}},{key:"_swapBuffer",value:function(M){this._swapDataView(new DataView(M.buffer,M.byteOffset,M.byteLength))}},{key:"_swapDataView",value:function(M){this.dataView=M,this.buffer=M.buffer,this.byteOffset=M.byteOffset,this.byteLength=M.byteLength}},{key:"_lengthToEnd",value:function(M){return this.byteLength-M}},{key:"set",value:function(M,V){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X;return M instanceof DataView||M instanceof X?M=new Uint8Array(M.buffer,M.byteOffset,M.byteLength):M instanceof ArrayBuffer&&(M=new Uint8Array(M)),M instanceof Uint8Array||B("BufferView.set(): Invalid data argument."),this.toUint8().set(M,V),new E(this,V,M.byteLength)}},{key:"subarray",value:function(M,V){return new X(this,M,V=V||this._lengthToEnd(M))}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(M,V){return new Uint8Array(this.buffer,this.byteOffset+M,V)}},{key:"getString",value:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return ee(this.getUint8Array(M,V))}},{key:"getLatin1String",value:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,E=this.getUint8Array(M,V);return Y(E)}},{key:"getUnicodeString",value:function(){for(var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,E=[],T=0;T<V&&M+T<this.byteLength;T+=2)E.push(this.getUint16(M+T));return Y(E)}},{key:"getInt8",value:function(M){return this.dataView.getInt8(M)}},{key:"getUint8",value:function(M){return this.dataView.getUint8(M)}},{key:"getInt16",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(M,V)}},{key:"getInt32",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(M,V)}},{key:"getUint16",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(M,V)}},{key:"getUint32",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(M,V)}},{key:"getFloat32",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(M,V)}},{key:"getFloat64",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(M,V)}},{key:"getFloat",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(M,V)}},{key:"getDouble",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(M,V)}},{key:"getUintBytes",value:function(M,V,E){switch(V){case 1:return this.getUint8(M,E);case 2:return this.getUint16(M,E);case 4:return this.getUint32(M,E);case 8:return this.getUint64&&this.getUint64(M,E)}}},{key:"getUint",value:function(M,V,E){switch(V){case 8:return this.getUint8(M,E);case 16:return this.getUint16(M,E);case 32:return this.getUint32(M,E);case 64:return this.getUint64&&this.getUint64(M,E)}}},{key:"toString",value:function(M){return this.dataView.toString(M,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(M,V){return M instanceof this&&M.le===V?M:new X(M,void 0,void 0,V)}}]),X}();function se(X,M){B("".concat(X," '").concat(M,"' was not loaded, try using full build of exifr."))}var le=function(X){d(V,X);var M=f(V);function V(E){var T;return o(this,V),(T=M.call(this)).kind=E,T}return l(V,[{key:"get",value:function(E,T){return this.has(E)||se(this.kind,E),T&&(E in T||($=this.kind,ie=E,B("Unknown ".concat($," '").concat(ie,"'."))),T[E].enabled||se(this.kind,E)),g(u(V.prototype),"get",this).call(this,E);var $,ie}},{key:"keyList",value:function(){return y(this.keys())}}]),V}(i(N)),he=new le("file parser"),ve=new le("segment parser"),z=new le("file reader");function te(X){return function(){for(var M=[],V=0;V<arguments.length;V++)M[V]=arguments[V];try{return Promise.resolve(X.apply(this,M))}catch(E){return Promise.reject(E)}}}function me(X,M,V){return V?M?M(X):X:(X&&X.then||(X=Promise.resolve(X)),M?X.then(M):X)}var ce=te(function(X){return new Promise(function(M,V){var E=new FileReader;E.onloadend=function(){return M(E.result||new ArrayBuffer)},E.onerror=V,E.readAsArrayBuffer(X)})}),we=te(function(X){return L(X).then(function(M){return M.arrayBuffer()})}),Fe=te(function(X,M){return me(M(X),function(V){return new ne(V)})}),Oe=te(function(X,M,V){var E=new(z.get(V))(X,M);return me(E.read(),function(){return E})}),Ne=te(function(X,M,V,E){return z.has(V)?Oe(X,M,V):E?Fe(X,E):(B("Parser ".concat(V," is not loaded")),me())}),Ce="Invalid input argument";function Ee(X,M){return(V=X).startsWith("data:")||V.length>1e4?Oe(X,M,"base64"):_?Ne(X,M,"url",we):b?Oe(X,M,"fs"):void B(Ce);var V}var xe=function(X){d(V,X);var M=f(V);function V(){return o(this,V),M.apply(this,arguments)}return l(V,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=y(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=y(this.values())
vendor: 4,279 bytes, line 8
8),this.allValues}}]),V}(i(N));function Te(X,M,V){var E=new xe,T=V;Array.isArray(T)||("function"==typeof T.entries&&(T=T.entries()),T=y(T));for(var $=0;$<T.length;$++){var ie=T[$],oe=ie[0],fe=ie[1];E.set(oe,fe)}if(Array.isArray(M)){var be=M;Array.isArray(be)||("function"==typeof be.entries&&(be=be.entries()),be=y(be));for(var De=0;De<be.length;De++){var Se=be[De];X.set(Se,E)}}else X.set(M,E);return E}function Be(X,M,V){var E,T=X.get(M),$=V;Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++)E=$[ie],T.set(E[0],E[1])}var ze=K(),Pe=K(),je=K(),Le=37500,He=37510,qe=33723,Ke=34675,Je=34665,tt=34853,it=40965,at=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],ct=["jfif","xmp","icc","iptc","ihdr"],ot=["tiff"].concat(ct),Ze=["ifd0","ifd1","exif","gps","interop"],et=[].concat(ot,Ze),ht=["makerNote","userComment"],lt=["translateKeys","translateValues","reviveValues","multiSegment"],gt=[].concat(lt,["sanitize","mergeOutput","silentErrors"]),mt=function(){function X(){o(this,X)}return l(X,[{key:"translate",get:function(){return this.translateKeys||this.translateValues||this.reviveValues}}]),X}(),_t=function(X){d(V,X);var M=f(V);function V(E,T,$,ie){var oe;if(o(this,V),a(s(oe=M.call(this)),"enabled",!1),a(s(oe),"skip",H()),a(s(oe),"pick",H()),a(s(oe),"deps",H()),a(s(oe),"translateKeys",!1),a(s(oe),"translateValues",!1),a(s(oe),"reviveValues",!1),oe.key=E,oe.enabled=T,oe.parse=oe.enabled,oe.applyInheritables(ie),oe.canBeFiltered=Ze.includes(E),oe.canBeFiltered&&(oe.dict=ze.get(E)),void 0!==$)if(Array.isArray($))oe.parse=oe.enabled=!0,oe.canBeFiltered&&$.length>0&&oe.translateTagSet($,oe.pick);else if("object"==typeof $){if(oe.enabled=!0,oe.parse=!1!==$.parse,oe.canBeFiltered){var fe=$.pick,be=$.skip;fe&&fe.length>0&&oe.translateTagSet(fe,oe.pick),be&&be.length>0&&oe.translateTagSet(be,oe.skip)}oe.applyInheritables($)}else!0===$||!1===$?oe.parse=oe.enabled=$:B("Invalid options argument: ".concat($));return oe}return l(V,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(E){var T,$,ie=lt;Array.isArray(ie)||("function"==typeof ie.entries&&(ie=ie.entries()),ie=y(ie));for(var oe=0;oe<ie.length;oe++)void 0!==($=E[T=ie[oe]])&&(this[T]=$)}},{key:"translateTagSet",value:function(E,T){if(this.dict){var $,ie,oe=this.dict,fe=oe.tagKeys,be=oe.tagValues,De=E;Array.isArray(De)||("function"==typeof De.entries&&(De=De.entries()),De=y(De));for(var Se=0;Se<De.length;Se++)"string"==typeof($=De[Se])?(-1===(ie=be.indexOf($))&&(ie=fe.indexOf(Number($))),-1!==ie&&T.add(Number(fe[ie]))):T.add($)}else{var Me=E;Array.isArray(Me)||("function"==typeof Me.entries&&(Me=Me.entries()),Me=y(Me));for(var Ge=0;Ge<Me.length;Ge++){var Ve=Me[Ge];T.add(Ve)}}}},{key:"finalizeFilters",value:function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,k(this.pick,this.deps)):this.enabled&&this.pick.size>0&&k(this.pick,this.deps)}}]),V}(mt),Ye={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Pt=K(),rt=function(X){d(V,X);var M=f(V);function V(E){var T;return o(this,V),T=M.call(this),!0===E?T.setupFromTrue():void 0===E?T.setupFromUndefined():Array.isArray(E)?T.setupFromArray(E):"object"==typeof E?T.setupFromObject(E):B("Invalid options argument ".concat(E)),void 0===T.firstChunkSize&&(T.firstChunkSize=_?T.firstChunkSizeBrowser:T.firstChunkSizeNode),T.mergeOutput&&(T.ifd1.enabled=!1),T.filterNestedSegmentTags(),T.traverseTiffDependencyTree(),T.checkLoadedPlugins(),T}return l(V,[{key:"setupFromUndefined",value:function(){var E,T=at;Array.isArray(T)||("function"==typeof T.entries&&(T=T.entries()),T=y(T));for(var $=0;$<T.length;$++)this[E=T[$]]=Ye[E];var ie=gt;Array.isArray(ie)||("function"==typeof ie.entries&&(ie=ie.entries()),ie=y(ie));for(var oe=0;oe<ie.length;oe++)this[E=ie[oe]]=Ye[E];var fe=ht;Array.isArray(fe)||("function"==typeof fe.entries&&(fe=fe.entries()),fe=y(fe));for(var be=0;be<fe.length;
8be++)this[E=fe[be]]=Ye[E];var De=et;Array.isArray(De)||("function"==typeof De.entries&&(De=De.entries()),De=y(De));for(var Se=0;Se<De.length;Se++)this[E=De[Se]]=new _t(E,Ye[E],void 0,this)}},{key:"setupFromTrue",value:function(){var E,T=at;Array.isArray(T)||("function"==typeof T.entries&&(T=T.entries()),T=y(T));for(var $=0;$<T.length;$++)this[E=T[$]]=Ye[E];var ie=gt;Array.isArray(ie)||("function"==typeof ie.entries&&(ie=ie.entries()),ie=y(ie));for(var oe=0;oe<ie.length;oe++)this[E=ie[oe]]=Ye[E];var fe=ht;Array.isArray(fe)||("function"==typeof fe.entries&&(fe=fe.entries()),fe=y(fe));for(var be=0;be<fe.length;be++)this[E=fe[be]]=!0;var De=et;Array.isArray(De)||("function"==typeof De.entries&&(De=De.entries()),De=y(De));for(var Se=0;Se<De.length;Se++)this[E=De[Se]]=new _t(E,!0,void 0,this)}},{key:"setupFromArray",value:function(E){var T,$=at;Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++)this[T=$[ie]]=Ye[T];var oe=gt;Array.isArray(oe)||("function"==typeof oe.entries&&(oe=oe.entries()),oe=y(oe));for(var fe=0;fe<oe.length;fe++)this[T=oe[fe]]=Ye[T];var be=ht;Array.isArray(be)||("function"==typeof be.entries&&(be=be.entries()),be=y(be));for(var De=0;De<be.length;De++)this[T=be[De]]=Ye[T];var Se=et;Array.isArray(Se)||("function"==typeof Se.entries&&(Se=Se.entries()),Se=y(Se));for(var Me=0;Me<Se.length;Me++)this[T=Se[Me]]=new _t(T,!1,void 0,this);this.setupGlobalFilters(E,void 0,Ze)}},{key:"setupFromObject",value:function(E){var T;Ze.ifd0=Ze.ifd0||Ze.image,Ze.ifd1=Ze.ifd1||Ze.thumbnail,U(this,E);var $=at;Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++)this[T=$[ie]]=ge(E[T],Ye[T]);var oe=gt;Array.isArray(oe)||("function"==typeof oe.entries&&(oe=oe.entries()),oe=y(oe));for(var fe=0;fe<oe.length;fe++)this[T=oe[fe]]=ge(E[T],Ye[T]);var be=ht;Array.isArray(be)||("function"==typeof be.entries&&(be=be.entries()),be=y(be));for(var De=0;De<be.length;De++)this[T=be[De]]=ge(E[T],Ye[T]);var Se=ot;Array.isArray(Se)||("function"==typeof Se.entries&&(Se=Se.entries()),Se=y(Se));for(var Me=0;Me<Se.length;Me++)this[T=Se[Me]]=new _t(T,Ye[T],E[T],this);var Ge=Ze;Array.isArray(Ge)||("function"==typeof Ge.entries&&(Ge=Ge.entries()),Ge=y(Ge));for(var Ve=0;Ve<Ge.length;Ve++)this[T=Ge[Ve]]=new _t(T,Ye[T],E[T],this.tiff);this.setupGlobalFilters(E.pick,E.skip,Ze,et),!0===E.tiff?this.batchEnableWithBool(Ze,!0):!1===E.tiff?this.batchEnableWithUserValue(Ze,E):Array.isArray(E.tiff)?this.setupGlobalFilters(E.tiff,void 0,Ze):"object"==typeof E.tiff&&this.setupGlobalFilters(E.tiff.pick,E.tiff.skip,Ze)}},{key:"batchEnableWithBool",value:function(E,T){var $=E;Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++)this[$[ie]].enabled=T}},{key:"batchEnableWithUserValue",value:function(E,T){var $=E;Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++){var oe=$[ie],fe=T[oe];this[oe].enabled=!1!==fe&&void 0!==fe}}},{key:"setupGlobalFilters",value:function(E,T,$){var ie=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$;if(E&&E.length){var oe=ie;Array.isArray(oe)||("function"==typeof oe.entries&&(oe=oe.entries()),oe=y(oe));for(var fe=0;fe<oe.length;fe++)this[oe[fe]].enabled=!1;var Se=bt(E,$);Array.isArray(Se)||("function"==typeof Se.entries&&(Se=Se.entries()),Se=y(Se));for(var Me=0;Me<Se.length;Me++){var Ge=Se[Me],Ve=Ge[0],Ft=Ge[1];k(this[Ve].pick,Ft),this[Ve].enabled=!0}}else if(T&&T.length){var Bt=bt(T,$);Array.isArray(Bt)||("function"==typeof Bt.entries&&(Bt=Bt.entries()),Bt=y(Bt));for(var qt=0;qt<Bt.length;qt++){var Zt=Bt[qt],tn=Zt[0],nn=Zt[1];k(this[tn].skip,nn)}}}},{key:"filterNestedSegmentTags",value:function(){var E=this.ifd0,T=this.exif,$=this.xmp,ie=this.iptc,oe=this.icc;this.makerNote?T.deps.add(Le):T.skip.add(Le),this.userComment?T.deps.add(He):T.skip.add(He),$.enabled||E.skip.add(700),ie.enabled||E.skip.add(qe),oe.enabled||E.skip.add(Ke)}},{key:"traverseTiffDependencyTree",value:function(){var E=this,T=this.ifd0,$=this.exif,ie=this.gps;this.interop.needed&&($.deps.add(it),T.deps.add(it)),$.needed&&T.deps.add(Je),ie.needed&&T.deps.add(tt),this.tiff.enabled=Ze.some(function(be){return!0===E[be].enabled})||this.makerNote||this.userComment;var oe=Ze;Array.isArray(oe)||("function"==typeof oe.entries&&(oe=oe.entries()),oe=y(oe));for(var fe=0;fe<oe.length;fe++)this[oe[fe]].finalizeFilters()}},{key:"onlyTiff",get:function(){var E=this;return!ct.map(function(T){return E[T].enabled}).some(function(T){return!0===T})&&this.tiff.enabled}},{key:"checkLoadedPlugins",value:function(){var E=ot;Array.isArray(E)||("function"==typeof E.entries&&(E=E.entries()),E=y(E));for(var T=0;T<E.length;T++){var $=E[T];this[$].enabled&&!ve.has($)&&se("segment parser",$)}}}],[{key:"useCached",value:function(E){var T=Pt.get(E);return void 0!==T||(T=new this(E),Pt.set(E,T)),T}}]),V}(mt);function bt(X,M){var V,E,T,$=[],ie=M;Array.isArray(ie)||("function"==typeof ie.entries&&(ie=ie.entries()),ie=y(ie));for(var oe=0;oe<ie.length;oe++){E=ie[oe],V=[];var fe=ze.get(E);Array.isArray(fe)||("function"==typeof fe.entries&&(fe=fe.entries()),fe=y(fe));for(var be=0;be<fe.length;be++)T=fe[be],(X.includes(T[0])||X.includes(T[1]))&&V.push(T[0]);V.length&&$.push([E,V])}return $}function ge(X,M){return void 0!==X?X:void 0!==M?M:void 0}function k(X,M){var V=M;Array.isArray(V)||("function"==typeof V.entries&&(V=V.entries()),V=y(V));for(var E=0;E<V.length;E++){var T=V[E];X.add(T)}}function W(X,M,V){return V?M?M(X):X:(X&&X.then||(X=Promise.resolve(X)),M?X.then(M):X)}function q(){}function re(X,M){if(!M)return X&&X.then?X.then(q):Promise.resolve()}function ue(X,M){var V=X();return V&&V.then?V.then(M):M(V)}a(rt,"default",Ye);var ye,de=function(){function X(M){o(this,X),a(this,"parsers",{}),this.options=rt.useCached(M)}return l(X,[{key:"setup",value:function(){if(!this.fileParser){var M=this.file,V=M.getUint16(0),E=he;Array.isArray(E)||("function"==typeof E.entries&&(E=E.entries()),E=y(E));for(var T=0;T<E.length;T++){var $=E[T],ie=$[0],oe=$[1];if(oe.canHandle(M,V))return this.fileParser=new oe(this.options,this.file,this.parsers),M[ie]=!0}B("Unknown file format")}}},{key:"read",value:function(M){try{var V=this;return W((E=M,T=V.options,"string"==typeof E?Ee(E,T):_&&!m&&E instanceof HTMLImageElement?Ee(E.src,T):E instanceof Uint8Array||E instanceof ArrayBuffer||E instanceof DataView?new ne(E):_&&E instanceof Blob?Ne(E,T,"blob",ce):void B(Ce)),function(E){V.file=E})}catch(E){return Promise.reject(E)}var E,T}},{key:"parse",value:function(){try{var M=this;M.setup();var V={},E=[];return ue(function(){return M.options.silentErrors?W(M.doParse(V,E).catch(function(T){return E.push(T)}),function(){E.push.apply(E,M.fileParser.errors)}):re(M.doParse(V,E))},function(){return M.file.close&&M.file.close(),M.options.silentErrors&&E.length>0&&(V.errors=E),P(T=V)?void 0:T;var T})}catch(T){return Promise.reject(T)}}},{key:"doParse",value:function(M,V){try{var E=this;return W(E.fileParser.parse(),function(){var T,$=A(E.parsers).map((T=function(oe){return W(oe.parse(),function(fe){oe.assignToOutput(M,fe)})},function(){for(var oe=[],fe=0;fe<arguments.length;fe++)oe[fe]=arguments[fe];try{return Promise.resolve(T.apply(this,oe))}catch(be){return Promise.reject(be)}}));if(E.options.silentErrors){var ie=function(oe){return V.push(oe)};$=$.map(function(oe){return oe.catch(ie)})}return re(Promise.all($))})}catch(T){return Promise.reject(T)}}},{key:"extractThumbnail",value:function(){try{var M=this;M.setup();var V,E=M.options,T=M.file,$=ve.get("tiff",E);return ue(function(){if(!T.tiff)return function(ie){var oe=ie();if(oe&&oe.then)return oe.then(q)}(function(){if(T.jpeg)return W(M.fileParser.getOrFindSegment("tiff"),function(ie){V=ie})});V={start:0,type:"tiff"}},function(){if(void 0!==V)return W(M.fileParser.ensureSegmentChunk(V),function(ie){return W((M.parsers.tiff=new $(ie,E,T)).extractThumbnail(),function(oe){return T.close&&T.close(),oe})})})}catch(ie){return Promise.reject(ie)}}}]),X}(),Ae=(ye=function(X,M){var V,E,T,$=new de(M);return V=$.read(X),E=function(){return $.parse()},T?E?E(V):V:(V&&V.then||(V=Promise.resolve(V)),E?V.then(E):V)},function(){for(var X=[],M=0;M<arguments.length;M++)X[M]=arguments[M];try{return Promise.resolve(ye.apply(this,X))}catch(V){return Promise.reject(V)}}),Ie=Object.freeze({__proto__:null,parse:Ae,Exifr:de,fileParsers:he,segmentParsers:ve,fileReaders:z,tagKeys:ze,tagValues:Pe,tagRevivers:je,createDictionary:Te,extendDictionary:Be,fetchUrlAsArrayBuffer:we,readBlobAsArrayBuffer:ce,chunkedProps:at,otherSegments:ct,segments:ot,tiffBlocks:Ze,segmentsAndBlocks:et,tiffExtractables:ht,inheritables:lt,allFormatters:gt,Options:rt});function $e(){}var st=function(){function X(M,V,E){var $,T=this;o(this,X),a(this,"errors",[]),a(this,"ensureSegmentChunk",($=function($){var oe,fe,be=$.start,De=$.size||65536;return oe=function(){return $.chunk},(fe=function(){if(T.file.chunked)return function(Se){var Me=Se();if(Me&&Me.then)return Me.then($e)}(function(){if(!T.file.available(be,De))return function(Se){if(Se&&Se.then)return Se.then($e)}(function(Se,Me){try{var Ge=Se()}catch(Ve){return Me(Ve)}return Ge&&Ge.then?Ge.then(void 0,Me):Ge}(function(){return Se=T.file.readChunk(be,De),Me=function(Ve){$.chunk=Ve},Ge?Me?Me(Se):Se:(Se&&Se.then||(Se=Promise.resolve(Se)),Me?Se.then(Me):Se);var Se,Me,Ge},function(Se){B("Couldn't read segment: ".concat(JSON.stringify($),". ").concat(Se.message))}));$.chunk=T.file.subarray(be,De)});T.file.byteLength>be+De?$.chunk=T.file.subarray(be,De):void 0===$.size?$.chunk=T.file.subarray(be):B("Segment unreachable: "+JSON.stringify($))}())&&fe.then?fe.then(oe):oe(fe)},function(){for(var ie=[],oe=0;oe<arguments.length;oe++)ie[oe]=arguments[oe];try{return Promise.resolve($.apply(this,ie))}catch(fe){return Promise.reject(fe)}})),this.extendOptions&&this.extendOptions(M),this.options=M,this.file=V,this.parsers=E}return l(X,[{key:"injectSegment",value:function(M,V){this.options[M].enabled&&this.createParser(M,V
8)}},{key:"createParser",value:function(M,V){var E=new(ve.get(M))(V,this.options,this.file);return this.parsers[M]=E}},{key:"createParsers",value:function(M){var V=M;Array.isArray(V)||("function"==typeof V.entries&&(V=V.entries()),V=y(V));for(var E=0;E<V.length;E++){var T=V[E],$=T.type,ie=T.chunk,oe=this.options[$];if(oe&&oe.enabled){var fe=this.parsers[$];fe&&fe.append||fe||this.createParser($,ie)}}}},{key:"readSegments",value:function(M){try{var V=M.map(this.ensureSegmentChunk);return(E=Promise.all(V))&&E.then?E.then($e):Promise.resolve()}catch(E){return Promise.reject(E)}var E}}]),X}(),J=function(){function X(M){var V=this,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T=arguments.length>2?arguments[2]:void 0;o(this,X),a(this,"errors",[]),a(this,"raw",K()),a(this,"handleError",function($){if(!V.options.silentErrors)throw $;V.errors.push($.message)}),this.chunk=this.normalizeInput(M),this.file=T,this.type=this.constructor.type,this.globalOptions=this.options=E,this.localOptions=E[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return l(X,[{key:"normalizeInput",value:function(M){return M instanceof ne?M:new ne(M)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?F(this.raw):void 0}},{key:"translateBlock",value:function(M,V){var E=je.get(V),T=Pe.get(V),$=ze.get(V),ie=this.options[V],oe=ie.reviveValues&&!!E,fe=ie.translateValues&&!!T,be=ie.translateKeys&&!!$,De={},Se=M;Array.isArray(Se)||("function"==typeof Se.entries&&(Se=Se.entries()),Se=y(Se));for(var Me=0;Me<Se.length;Me++){var Ge=Se[Me],Ve=Ge[0],Ft=Ge[1];oe&&E.has(Ve)?Ft=E.get(Ve)(Ft):fe&&T.has(Ve)&&(Ft=this.translateValue(Ft,T.get(Ve))),be&&$.has(Ve)&&(Ve=$.get(Ve)||Ve),De[Ve]=Ft}return De}},{key:"translateValue",value:function(M,V){return V[M]||V.DEFAULT||M}},{key:"assignToOutput",value:function(M,V){this.assignObjectToOutput(M,this.constructor.type,V)}},{key:"assignObjectToOutput",value:function(M,V,E){if(this.globalOptions.mergeOutput)return U(M,E);M[V]?U(M[V],E):M[V]=E}}],[{key:"findPosition",value:function(M,V){var E=M.getUint16(V+2)+2,T="function"==typeof this.headerLength?this.headerLength(M,V,E):this.headerLength,$=V+T,ie=E-T;return{offset:V,length:E,headerLength:T,start:$,size:ie,end:$+ie}}},{key:"parse",value:function(M){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(M,new rt(a({},this.type,V))).parse()}}]),X}();function Q(X,M,V){return V?M?M(X):X:(X&&X.then||(X=Promise.resolve(X)),M?X.then(M):X)}function G(){}function Z(X,M){if(!M)return X&&X.then?X.then(G):Promise.resolve()}function pe(X){var M=X();if(M&&M.then)return M.then(G)}function _e(X,M){var V=X();return V&&V.then?V.then(M):M(V)}function ke(X,M,V){if(!X.s){if(V instanceof We){if(!V.s)return void(V.o=ke.bind(null,X,M));1&M&&(M=V.s),V=V.v}if(V&&V.then)return void V.then(ke.bind(null,X,M),ke.bind(null,X,2));X.s=M,X.v=V;var E=X.o;E&&E(X)}}a(J,"headerLength",4),a(J,"type",void 0),a(J,"multiSegment",!1),a(J,"canHandle",function(){return!1});var We=function(){function X(){}return X.prototype.then=function(M,V){var E=new X,T=this.s;if(T){var $=1&T?M:V;if($){try{ke(E,1,$(this.v))}catch(ie){ke(E,2,ie)}return E}return this}return this.o=function(ie){try{var oe=ie.v;1&ie.s?ke(E,1,M?M(oe):oe):V?ke(E,1,V(oe)):ke(E,2,oe)}catch(fe){ke(E,2,fe)}},E},X}();function Xe(X){return X instanceof We&&1&X.s}function Qe(X,M,V){for(var E;;){var T=X();if(Xe(T)&&(T=T.v),!T)return $;if(T.then){E=0;break}var $=V();if($&&$.then){if(!Xe($)){E=1;break}$=$.s}if(M){var ie=M();if(ie&&ie.then&&!Xe(ie)){E=2;break}}}var oe=new We,fe=ke.bind(null,oe,2);return(0===E?T.then(De):1===E?$.then(be):ie.then(Se)).then(void 0,fe),oe;function be(Me){$=Me;do{if(M&&(ie=M())&&ie.then&&!Xe(ie))return void ie.then(Se).then(void 0,fe);if(!(T=X())||Xe(T)&&!T.v)return void ke(oe,1,$);if(T.then)return void T.then(De).then(void 0,fe);Xe($=V())&&($=$.v)}while(!$||!$.then);$.then(be).then(void 0,fe)}function De(Me){Me?($=V())&&$.then?$.then(be).then(void 0,fe):be($):ke(oe,1,$)}function Se(){(T=X())?T.then?T.then(De).then(void 0,fe):De(T):ke(oe,1,$)}}function wt(X){return 192===X||194===X||196===X||219===X||221===X||218===X||254===X}function Rt(X){return X>=224&&X<=239}function Ct(X,M,V){var E=ve;Array.isArray(E)||("function"==typeof E.entries&&(E=E.entries()),E=y(E));for(var T=0;T<E.length;T++){var $=E[T],ie=$[0];if($[1].canHandle(X,M,V))return ie}}var Dt=function(X){d(V,X);var M=f(V);function V(){var E;o(this,V);for(var T=arguments.length,$=new Array(T),ie=0;ie<T;ie++)$[ie]=arguments[ie];return a(s(E=M.call.apply(M,[this].concat($))),"appSegments",[]),a(s(E),"jpegSegments",[]),a(s(E),"unknownSegments",[]),E}return l(V,[{key:"parse",value:function(){try{var E=this;return Q(E.findAppSegments(),function(){return Q(E.readSegments(E.appSegments),function(){E.mergeMultiSegments(),E.createParsers(E.mergedAppSegments||E.appSegments)})})}catch(T){return Promise.reject(T)}}},{key:"setupSegmentFinderArgs",value:function(E){var T=this;!0===E?(this.findAll=!0,this.wanted=H(ve.keyList())):(E=void 0===E?ve.keyList().filter(function($){return T.options[$].enabled}):E.filter(function($){return T.options[$].enabled&&ve.has($)}),this.findAll=!1,this.remaining=H(E),this.wanted=H(E)),this.unfinishedMultiSegment=!1}},{key:"findAppSegments",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,T=arguments.length>1?arguments[1]:void 0;try{var $=this;$.setupSegmentFinderArgs(T);var ie=$.file,oe=$.findAll,fe=$.wanted,be=$.remaining;return _e(function(){if(!oe&&$.file.chunked)return oe=y(fe).some(function(De){var Se=ve.get(De),Me=$.options[De];return Se.multiSegment&&Me.multiSegment}),pe(function(){if(oe)return Z($.file.readWhole())})},function(){var De=!1;if(E=$.findAppSegmentsInRange(E,ie.byteLength),!$.options.onlyTiff)return function(){if(ie.chunked){var Se=!1;return Qe(function(){return!De&&be.size>0&&!Se&&(!!ie.canReadNextChunk||!!$.unfinishedMultiSegment)},void 0,function(){var Me=ie.nextChunkOffset,Ge=$.appSegments.some(function(Ve){return!$.file.available(Ve.offset||Ve.start,Ve.length||Ve.size)});return _e(function(){return Q(E>Me&&!Ge?ie.readNextChunk(E):ie.readNextChunk(Me),function(Ve){Se=!Ve})},function(){void 0===(E=$.findAppSegmentsInRange(E,ie.byteLength))&&(De=!0)})})}}()})}catch(De){return Promise.reject(De)}}},{key:"findAppSegmentsInRange",value:function(E,T){T-=2;
8for(var $,ie,oe,fe,be,De,Se=this.file,Me=this.findAll,Ge=this.wanted,Ve=this.remaining,Ft=this.options;E<T;E++)if(255===Se.getUint8(E))if(Rt($=Se.getUint8(E+1))){if(ie=Se.getUint16(E+2),(oe=Ct(Se,E,ie))&&Ge.has(oe)&&(be=(fe=ve.get(oe)).findPosition(Se,E),De=Ft[oe],be.type=oe,this.appSegments.push(be),!Me&&(fe.multiSegment&&De.multiSegment?(this.unfinishedMultiSegment=be.chunkNumber<be.chunkCount,this.unfinishedMultiSegment||Ve.delete(oe)):Ve.delete(oe),0===Ve.size)))break;Ft.recordUnknownSegments&&((be=J.findPosition(Se,E)).marker=$,this.unknownSegments.push(be)),E+=ie+1}else if(wt($)){if(ie=Se.getUint16(E+2),218===$&&!1!==Ft.stopAfterSos)return;Ft.recordJpegSegments&&this.jpegSegments.push({offset:E,length:ie,marker:$}),E+=ie+1}return E}},{key:"mergeMultiSegments",value:function(){var E=this;if(this.appSegments.some(function($){return $.multiSegment})){var T=function($,ie){for(var oe,fe,be,De=K(),Se=0;Se<$.length;Se++)fe=(oe=$[Se])[ie],De.has(fe)?be=De.get(fe):De.set(fe,be=[]),be.push(oe);return y(De)}(this.appSegments,"type");this.mergedAppSegments=T.map(function($){var ie=$[0],oe=$[1],fe=ve.get(ie,E.options);return fe.handleMultiSegments?{type:ie,chunk:fe.handleMultiSegments(oe)}:oe[0]})}}},{key:"getSegment",value:function(E){return this.appSegments.find(function(T){return T.type===E})}},{key:"getOrFindSegment",value:function(E){try{var T=this,$=T.getSegment(E);return _e(function(){if(void 0===$)return Q(T.findAppSegments(0,[E]),function(){$=T.getSegment(E)})},function(){return $})}catch(ie){return Promise.reject(ie)}}}],[{key:"canHandle",value:function(E,T){return 65496===T}}]),V}(st);function Nt(){}function pt(X,M){if(!M)return X&&X.then?X.then(Nt):Promise.resolve()}function ft(X,M){var V=X();return V&&V.then?V.then(M):M(V)}a(Dt,"type","jpeg"),he.set("jpeg",Dt);var It=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],Lt=function(X){d(V,X);var M=f(V);function V(){return o(this,V),M.apply(this,arguments)}return l(V,[{key:"parse",value:function(){try{var E=this;E.parseHeader();var T=E.options;return ft(function(){if(T.ifd0.enabled)return pt(E.parseIfd0Block())},function(){return ft(function(){if(T.exif.enabled)return pt(E.safeParse("parseExifBlock"))},function(){return ft(function(){if(T.gps.enabled)return pt(E.safeParse("parseGpsBlock"))},function(){return ft(function(){if(T.interop.enabled)return pt(E.safeParse("parseInteropBlock"))},function(){return ft(function(){if(T.ifd1.enabled)return pt(E.safeParse("parseThumbnailBlock"))},function(){return E.createOutput()})})})})})}catch($){return Promise.reject($)}}},{key:"safeParse",value:function(E){var T=this[E]();return void 0!==T.catch&&(T=T.catch(this.handleError)),T}},{key:"findIfd0Offset",value:function(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}},{key:"findIfd1Offset",value:function(){if(void 0===this.ifd1Offset){this.findIfd0Offset();var E=this.chunk.getUint16(this.ifd0Offset),T=this.ifd0Offset+2+12*E;this.ifd1Offset=this.chunk.getUint32(T)}}},{key:"parseBlock",value:function(E,T){var $=K();return this[T]=$,this.parseTags(E,T,$),$}},{key:"parseIfd0Block",value:function(){try{var E=this;if(E.ifd0)return;var T=E.file;return E.findIfd0Offset(),E.ifd0Offset<8&&B("Malformed EXIF data"),!T.chunked&&E.ifd0Offset>T.byteLength&&B("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(E.ifd0Offset,", file.byteLength: ").concat(T.byteLength)),ft(function(){if(T.tiff)return pt(T.ensureChunk(E.ifd0Offset,p(E.options)))},function(){var $=E.parseBlock(E.ifd0Offset,"ifd0");if(0!==$.size)return E.exifOffset=$.get(Je),E.interopOffset=$.get(it),E.gpsOffset=$.get(tt),E.xmp=$.get(700),E.iptc=$.get(qe),E.icc=$.get(Ke),E.options.sanitize&&($.delete(Je),$.delete(it),$.delete(tt),$.delete(700),$.delete(qe),$.delete(Ke)),$})}catch($){return Promise.reject($)}}},{key:"parseExifBlock",value:function(){try{var E=this;return E.exif?void 0:ft(function(){if(!E.ifd0)return pt(E.parseIfd0Block())},function(){if(void 0!==E.exifOffset)return ft(function(){if(E.file.tiff)return pt(E.file.ensureChunk(E.exifOffset,p(E.options)))},function(){var T=E.parseBlock(E.exifOffset,"exif");return E.interopOffset||(E.interopOffset=T.get(it)),E.makerNote=T.get(Le),E.userComment=T.get(He),E.options.sanitize&&(T.delete(it),T.delete(Le),T.delete(He)),E.unpack(T,41728),E.unpack(T,41729),T})})}catch(T){return Promise.reject(T)}}},{key:"unpack",value:function(E,T){var $=E.get(T);$&&1===$.length&&E.set(T,$[0])}},{key:"parseGpsBlock",value:function(){try{var E=this;return E.gps?void 0:ft(function(){if(!E.ifd0)return pt(E.parseIfd0Block())},function(){if(void 0!==E.gpsOffset){var T=E.parseBlock(E.gpsOffset,"gps");return T&&T.has(2)&&T.has(4)&&(T.set("latitude",vt.apply(void 0,T.get(2).concat([T.get(1)]))),T.set("longitude",vt.apply(void 0,T.get(4).concat([T.get(3)])))),T}})}catch(T){return Promise.reject(T)}}},{key:"parseInteropBlock",value:function(){try{var E=this;return E.interop?void 0:ft(function(){if(!E.ifd0)return pt(E.parseIfd0Block())},function(){return ft(function(){if(void 0===E.interopOffset&&!E.exif)return pt(E.parseExifBlock())},function(){if(void 0!==E.interopOffset)return E.parseBlock(E.interopOffset,"interop")})})}catch(T){return Promise.reject(T)}}},{key:"parseThumbnailBlock",value:function(){var E=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var T=this;return T.ifd1||T.ifd1Parsed||T.options.mergeOutput&&!E?void 0:(T.findIfd1Offset(),T.ifd1Offset>0&&(T.parseBlock(T.ifd1Offset,"ifd1"),T.ifd1Parsed=!0),T.ifd1)}catch($){return Promise.reject($)}}},{key:"extractThumbnail",value:function(){try{var E=this;return E.headerParsed||E.parseHeader(),ft(function(){if(!E.ifd1Parsed)return pt(E.parseThumbnailBlock(!0))},function(){if(void 0!==E.ifd1){var T=E.ifd1.get(513),$=E.ifd1.get(514);return E.chunk.getUint8Array(T,$)}})}catch(T){return Promise.reject(T)}}},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){var E,T,$,ie={},oe=Ze;Array.isArray(oe)||("function"==typeof oe.entries&&(oe=oe.entries()),oe=y(oe));for(var fe=0;fe<oe.length;fe++)if(!P(E=this[T=oe[fe]]))if($=this.canTranslate?this.translateBlock(E,T):F(E),this.options.mergeOutput){if("ifd1"===T)continue;U(ie,$)}else ie[T]=$;return this.makerNote&&(ie.makerNote=this.makerNote),this.userComment&&(ie.userComment=this.userComment),ie}},{key:"assignToOutput",value:function(E,T){if(this.globalOptions.mergeOutput)U(E,T);else{var $=w(T);Array.isArray($)||("function"==typeof $.entries&&($=$.entries()),$=y($));for(var ie=0;ie<$.length;ie++){var oe=$[ie],fe=oe[0],be=oe[1];this.assignObjectToOutput(E,fe,be)}}}}],[{key:"canHandle",value:function(E,T){return 225===E.getUint8(T+1)&&1165519206===E.getUint32(T+4)&&0===E.getUint16(T+8)}}]),V}(function(X){d(V,X);var M=f(V);function V(){return o(this,V),M.apply(this,arguments)}return l(V,[{key:"parseHeader",value:function(){var E=this.chunk.getUint16();18761===E?this.le=!0:19789===E&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}},{key:"parseTags",value:function(E,T){var $=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K(),ie=this.options[T],oe=ie.pick,fe=ie.skip,be=(oe=H(oe)).size>0,De=0===fe.size,Se=this.chunk.getUint16(E);E+=2;for(var Me=0;Me<Se;Me++){var Ge=this.chunk.getUint16(E);if(be){if(oe.has(Ge)&&($.set(Ge,this.parseTag(E,Ge,T)),oe.delete(Ge),0===oe.size))break}else!De&&fe.has(Ge)||$.set(Ge,this.parseTag(E,Ge,T));E+=12}return $}},{key:"parseTag",value:function(E,T,$){var ie,oe=this.chunk,fe=oe.getUint16(E+2),be=oe.getUint32(E+4),De=It[fe];
8if(De*be<=4?E+=8:E=oe.getUint32(E+8),(fe<1||fe>13)&&B("Invalid TIFF value type. block: ".concat($.toUpperCase(),", tag: ").concat(T.toString(16),", type: ").concat(fe,", offset ").concat(E)),E>oe.byteLength&&B("Invalid TIFF value offset. block: ".concat($.toUpperCase(),", tag: ").concat(T.toString(16),", type: ").concat(fe,", offset ").concat(E," is outside of chunk size ").concat(oe.byteLength)),1===fe)return oe.getUint8Array(E,be);if(2===fe)return""===(ie=function(Ve){for(;Ve.endsWith("\0");)Ve=Ve.slice(0,-1);return Ve}(ie=oe.getString(E,be)).trim())?void 0:ie;if(7===fe)return oe.getUint8Array(E,be);if(1===be)return this.parseTagValue(fe,E);for(var Se=new(function(Ve){switch(Ve){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(fe))(be),Me=De,Ge=0;Ge<be;Ge++)Se[Ge]=this.parseTagValue(fe,E),E+=Me;return Se}},{key:"parseTagValue",value:function(E,T){var $=this.chunk;switch(E){case 1:return $.getUint8(T);case 3:return $.getUint16(T);case 4:case 13:return $.getUint32(T);case 5:return $.getUint32(T)/$.getUint32(T+4);case 6:return $.getInt8(T);case 8:return $.getInt16(T);case 9:return $.getInt32(T);case 10:return $.getInt32(T)/$.getInt32(T+4);case 11:return $.getFloat(T);case 12:return $.getDouble(T);default:B("Invalid tiff type ".concat(E))}}}]),V}(J));function vt(X,M,V,E){var T=X+M/60+V/3600;return"S"!==E&&"W"!==E||(T*=-1),T}a(Lt,"type","tiff"),a(Lt,"headerLength",10),ve.set("tiff",Lt);var Kt=Object.freeze({__proto__:null,default:Ie,Exifr:de,fileParsers:he,segmentParsers:ve,fileReaders:z,tagKeys:ze,tagValues:Pe,tagRevivers:je,createDictionary:Te,extendDictionary:Be,fetchUrlAsArrayBuffer:we,readBlobAsArrayBuffer:ce,chunkedProps:at,otherSegments:ct,segments:ot,tiffBlocks:Ze,segmentsAndBlocks:et,tiffExtractables:ht,inheritables:lt,allFormatters:gt,Options:rt,parse:Ae});function Et(X,M,V){return V?M?M(X):X:(X&&X.then||(X=Promise.resolve(X)),M?X.then(M):X)}function Tt(X){return function(){for(var M=[],V=0;V<arguments.length;V++)M[V]=arguments[V];try{return Promise.resolve(X.apply(this,M))}catch(E){return Promise.reject(E)}}}var Mt=Tt(function(X){var M=new de(jt);return Et(M.read(X),function(){return Et(M.parse(),function(V){if(V&&V.ifd0)return V.ifd0[274]})})}),zt=Tt(function(X){var M=new de(xt);return Et(M.read(X),function(){return Et(M.parse(),function(V){if(V&&V.gps){var E=V.gps;return{latitude:E.latitude,longitude:E.longitude}}})})}),Gt=Tt(function(X){return Et(this.thumbnail(X),function(M){if(void 0!==M){var V=new Blob([M]);return URL.createObjectURL(V)}})}),$t=Tt(function(X){var M=new de(Ht);return Et(M.read(X),function(){return Et(M.extractThumbnail(),function(V){return V&&D?C.from(V):V})})}),Ut={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},xt=U({},Ut,{firstChunkSize:4e4,gps:[1,2,3,4]}),jt=U({},Ut,{firstChunkSize:4e4,ifd0:[274]}),Ht=U({},Ut,{tiff:!1,ifd1:!0,mergeOutput:!1}),Wt=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){var At=navigator.userAgent;if(At.includes("iPad")||At.includes("iPhone")){var ae=At.match(/OS (\d+)_(\d+)/);if(ae){var Ue=ae[1],Re=ae[2],nt=Number(Ue)+.1*Number(Re);e.rotateCanvas=nt<13.4,e.rotateCss=!1}}else if(At.includes("OS X 10")){var ut=At.match(/OS X 10[_.](\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(ut)<15}if(At.includes("Chrome/")){var yt=At.match(/Chrome\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(yt)<81}else if(At.includes("Firefox/")){var dt=At.match(/Firefox\/(\d+)/)[1];e.rotateCanvas=e.rotateCss=Number(dt)<77}}function St(){}var kt=function(X){d(V,X);var M=f(V);function V(){var E;o(this,V);for(var T=arguments.length,$=new Array(T),ie=0;ie<T;ie++)$[ie]=arguments[ie];return a(s(E=M.call.apply(M,[this].concat($))),"ranges",new Ot),0!==E.byteLength&&E.ranges.add(0,E.byteLength),E}return l(V,[{key:"_tryExtend",value:function(E,T,$){if(0===E&&0===this.byteLength&&$){var ie=new DataView($.buffer||$,$.byteOffset,$.byteLength);this._swapDataView(ie)}else{var oe=E+T;if(oe>this.byteLength){var fe=this._extend(oe).dataView;this._swapDataView(fe)}}}},{key:"_extend",value:function(E){var T;T=D?C.allocUnsafe(E):new Uint8Array(E);var $=new DataView(T.buffer,T.byteOffset,T.byteLength);
8return T.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:T,dataView:$}}},{key:"subarray",value:function(E,T){var $=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return T=T||this._lengthToEnd(E),$&&this._tryExtend(E,T),this.ranges.add(E,T),g(u(V.prototype),"subarray",this).call(this,E,T)}},{key:"set",value:function(E,T){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(T,E.byteLength,E);var ie=g(u(V.prototype),"set",this).call(this,E,T);return this.ranges.add(T,ie.byteLength),ie}},{key:"ensureChunk",value:function(E,T){try{var $=this;return!$.chunked||$.ranges.available(E,T)?void 0:(ie=$.readChunk(E,T))&&ie.then?ie.then(St):Promise.resolve()}catch(ie){return Promise.reject(ie)}var ie}},{key:"available",value:function(E,T){return this.ranges.available(E,T)}}]),V}(ne),Ot=function(){function X(){o(this,X),a(this,"list",[])}return l(X,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(M,V){var E=M+V,T=this.list.filter(function(ie){return Vt(M,ie.offset,E)||Vt(M,ie.end,E)});if(T.length>0){M=Math.min.apply(Math,[M].concat(T.map(function(ie){return ie.offset}))),V=(E=Math.max.apply(Math,[E].concat(T.map(function(ie){return ie.end}))))-M;var $=T.shift();$.offset=M,$.length=V,$.end=E,this.list=this.list.filter(function(ie){return!T.includes(ie)})}else this.list.push({offset:M,length:V,end:E})}},{key:"available",value:function(M,V){var E=M+V;return this.list.some(function(T){return T.offset<=M&&E<=T.end})}}]),X}();function Vt(X,M,V){return X<=M&&M<=V}function Yt(){}function Xt(X,M){if(!M)return X&&X.then?X.then(Yt):Promise.resolve()}function Jt(X,M,V){return V?M?M(X):X:(X&&X.then||(X=Promise.resolve(X)),M?X.then(M):X)}var Qt=function(X){d(V,X);var M=f(V);function V(){return o(this,V),M.apply(this,arguments)}return l(V,[{key:"readWhole",value:function(){try{var E=this;return E.chunked=!1,Jt(ce(E.input),function(T){E._swapArrayBuffer(T)})}catch(T){return Promise.reject(T)}}},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,g(u(V.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(E,T){try{var $=this,ie=T?E+T:void 0,oe=$.input.slice(E,ie);return Jt(ce(oe),function(fe){return $.set(fe,E,!0)})}catch(fe){return Promise.reject(fe)}}}]),V}(function(X){d(V,X);var M=f(V);function V(E,T){var $;return o(this,V),a(s($=M.call(this,0)),"chunksRead",0),$.input=E,$.options=T,$}return l(V,[{key:"readWhole",value:function(){try{var E=this;return E.chunked=!1,Xt(E.readChunk(E.nextChunkOffset))}catch(T){return Promise.reject(T)}}},{key:"readChunked",value:function(){try{var E=this;return E.chunked=!0,Xt(E.readChunk(0,E.options.firstChunkSize))}catch(T){return Promise.reject(T)}}},{key:"readNextChunk",value:function(E){try{var T=this;if(void 0===E&&(E=T.nextChunkOffset),T.fullyRead)return T.chunksRead++,!1;var $=T.options.chunkSize;return ie=T.readChunk(E,$),oe=function(be){return!!be&&be.byteLength===$},fe?oe?oe(ie):ie:(ie&&ie.then||(ie=Promise.resolve(ie)),oe?ie.then(oe):ie)}catch(be){return Promise.reject(be)}var ie,oe,fe}},{key:"readChunk",value:function(E,T){try{var $=this;return $.chunksRead++,0===(T=$.safeWrapAddress(E,T))?void 0:$._readChunk(E,T)}catch(ie){return Promise.reject(ie)}}},{key:"safeWrapAddress",value:function(E,T){return void 0!==this.size&&E+T>this.size?Math.max(0,this.size-E):T}},{key:"nextChunkOffset",get:function(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead<this.options.chunkLimit}},{key:"fullyRead",get:function(){return void 0!==this.size&&this.nextChunkOffset===this.size}},{key:"read",value:function(){return this.options.chunked?this.readChunked():this.readWhole()}},{key:"close",value:function(){}}]),V}(kt));z.set("blob",Qt),e.Exifr=de,e.Options=rt,e.allFormatters=gt,e.chunkedProps=at,e.createDictionary=Te,e.default=Kt,e.disableAllOptions=Ut,e.extendDictionary=Be,e.fetchUrlAsArrayBuffer=we,e.fileParsers=he,e.fileReaders=z,e.gps=zt,e.gpsOnlyOptions=xt,e.inheritables=lt,e.orientation=Mt,e.orientationOnlyOptions=jt,e.otherSegments=ct,e.parse=Ae,e.readBlobAsArrayBuffer=ce,e.rotation=function(X){return Et(Mt(X),function(M){return U({canvas:e.rotateCanvas,css:e.rotateCss},Wt[M])})},e.rotations=Wt,e.segmentParsers=ve,e.segments=ot,e.segmentsAndBlocks=et,e.tagKeys=ze,e.tagRevivers=je,e.tagValues=Pe,e.thumbnail=$t,e.thumbnailOnlyOptions=Ht,e.thumbnailUrl=Gt,e.tiffBlocks=Ze,e.tiffExtractables=ht,Object.defineProperty(e,"__esMo
8dule",{value:!0})}(v)},49457:function(O,v){var e,o,n;o=[],e=function(){"use strict";function l(i,s){return void 0===s?s={autoBom:!1}:"object"!=typeof s&&(console.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\ufeff",i],{type:i.type}):i}function a(i,s,r){var f=new XMLHttpRequest;f.open("GET",i),f.responseType="blob",f.onload=function(){h(f.response,s,r)},f.onerror=function(){console.error("could not download file")},f.send()}function d(i){var s=new XMLHttpRequest;s.open("HEAD",i,!1);try{s.send()}catch(r){}return 200<=s.status&&299>=s.status}function u(i){try{i.dispatchEvent(new MouseEvent("click"))}catch(r){var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}}var c="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,t=c.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=c.saveAs||("object"!=typeof window||window!==c?function(){}:"download"in HTMLAnchorElement.prototype&&!t?function(i,s,r){var f=c.URL||c.webkitURL,g=document.createElement("a");s=s||i.name||"download",g.download=s,g.rel="noopener","string"==typeof i?(g.href=i,g.origin===location.origin?u(g):d(g.href)?a(i,s,r):u(g,g.target="_blank")):(g.href=f.createObjectURL(i),setTimeout(function(){f.revokeObjectURL(g.href)},4e4),setTimeout(function(){u(g)},0))}:"msSaveOrOpenBlob"in navigator?function(i,s,r){if(s=s||i.name||"download","string"!=typeof i)navigator.msSaveOrOpenBlob(l(i,r),s);else if(d(i))a(i,s,r);else{var f=document.createElement("a");f.href=i,f.target="_blank",setTimeout(function(){u(f)})}}:function(i,s,r,f){if((f=f||open("","_blank"))&&(f.document.title=f.document.body.innerText="downloading..."),"string"==typeof i)return a(i,s,r);var g="application/octet-stream"===i.type,A=/constructor/i.test(c.HTMLElement)||c.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||g&&A||t)&&"undefined"!=typeof FileReader){var U=new FileReader;U.onloadend=function(){var S=U.result;S=w?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=S:location=S,f=null},U.readAsDataURL(i)}else{var F=c.URL||c.webkitURL,y=F.createObjectURL(i);f?f.location=y:location.href=y,f=null,setTimeout(function(){F.revokeObjectURL(y)},4e4)}});c.saveAs=h.saveAs=h,O.exports=h},void 0!==(n="function"==typeof e?e.apply(v,o):e)&&(O.exports=n)},35133:(O,v,e)=>{var o=e(75105),n=Object.prototype.toString,l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);O.exports=function d(u){if(!u||"object"!=typeof u)return!1;if(o(u)){for(var c=0,t=u.length;c<t;c++)if(d(u[c]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(u)||"function"==typeof ArrayBuffer&&u instanceof ArrayBuffer||l&&u instanceof Blob||a&&u instanceof File)return!0;if(u.toJSON&&"function"==typeof u.toJSON&&1===arguments.length)return d(u.toJSON(),!0);for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)&&d(u[h]))return!0;return!1}},94966:O=>{try{O.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(v){O.exports=!1}},37736:O=>{var v=[].indexOf;O.exports=function(e,o){if(v)return e.indexOf(o);for(var n=0;n<e.length;++n)if(e[n]===o)return n;return-1}},40064:O=>{O.exports=function(e,o){if(e===o)return!0;for(var n in e)if(!(n in o))return!1;for(var n in o)if(e[n]!==o[n])return!1;return!0}},75105:O=>{var v={}.toString;O.exports=Array.isArray||function(e){return"[object Array]"==v.call(e)}},7480:function(O,v){var e,o,n;n="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,O.exports=function(n){"use strict";var U,l=(n=n||{}).Base64,a="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
8+/",u=function(C){for(var D={},I=0,P=C.length;I<P;I++)D[C.charAt(I)]=I;return D}(d),c=String.fromCharCode,t=function(C){if(C.length<2)return(D=C.charCodeAt(0))<128?C:D<2048?c(192|D>>>6)+c(128|63&D):c(224|D>>>12&15)+c(128|D>>>6&63)+c(128|63&D);var D=65536+1024*(C.charCodeAt(0)-55296)+(C.charCodeAt(1)-56320);return c(240|D>>>18&7)+c(128|D>>>12&63)+c(128|D>>>6&63)+c(128|63&D)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,i=function(C){return C.replace(h,t)},s=function(C){var D=[0,2,1][C.length%3],I=C.charCodeAt(0)<<16|(C.length>1?C.charCodeAt(1):0)<<8|(C.length>2?C.charCodeAt(2):0);return[d.charAt(I>>>18),d.charAt(I>>>12&63),D>=2?"=":d.charAt(I>>>6&63),D>=1?"=":d.charAt(63&I)].join("")},r=n.btoa&&"function"==typeof n.btoa?function(C){return n.btoa(C)}:function(C){if(C.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return C.replace(/[\s\S]{1,3}/g,s)},f=function(C){return r(i(String(C)))},g=function(C){return C.replace(/[+\/]/g,function(D){return"+"==D?"-":"_"}).replace(/=/g,"")},A=function(C,D){return D?g(f(C)):f(C)},w=function(C){return A(C,!0)};n.Uint8Array&&(U=function(C,D){for(var I="",P=0,B=C.length;P<B;P+=3){var p=C[P],Y=C[P+1],j=C[P+2],ee=p<<16|Y<<8|j;I+=d.charAt(ee>>>18)+d.charAt(ee>>>12&63)+(void 0!==Y?d.charAt(ee>>>6&63):"=")+(void 0!==j?d.charAt(63&ee):"=")}return D?g(I):I});var _,F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,y=function(C){switch(C.length){case 4:var I=((7&C.charCodeAt(0))<<18|(63&C.charCodeAt(1))<<12|(63&C.charCodeAt(2))<<6|63&C.charCodeAt(3))-65536;return c(55296+(I>>>10))+c(56320+(1023&I));case 3:return c((15&C.charCodeAt(0))<<12|(63&C.charCodeAt(1))<<6|63&C.charCodeAt(2));default:return c((31&C.charCodeAt(0))<<6|63&C.charCodeAt(1))}},S=function(C){return C.replace(F,y)},x=function(C){var D=C.length,I=D%4,P=(D>0?u[C.charAt(0)]<<18:0)|(D>1?u[C.charAt(1)]<<12:0)|(D>2?u[C.charAt(2)]<<6:0)|(D>3?u[C.charAt(3)]:0),B=[c(P>>>16),c(P>>>8&255),c(255&P)];return B.length-=[0,0,2,1][I],B.join("")},L=n.atob&&"function"==typeof n.atob?function(C){return n.atob(C)}:function(C){return C.replace(/\S{1,4}/g,x)},H=function(C){return L(String(C).replace(/[^A-Za-z0-9\+\/]/g,""))},K=function(C){return S(L(C))},N=function(C){return String(C).replace(/[-_]/g,function(D){return"-"==D?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},R=function(C){return K(N(C))};n.Uint8Array&&(_=function(C){return Uint8Array.from(H(N(C)),function(D){return D.charCodeAt(0)})});var m=function(){var C=n.Base64;return n.Base64=l,C};if(n.Base64={VERSION:a,atob:H,btoa:r,fromBase64:R,toBase64:A,utob:i,encode:A,encodeURI:w,btou:S,decode:R,noConflict:m,fromUint8Array:U,toUint8Array:_},"function"==typeof Object.defineProperty){var b=function(C){return{value:C,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",b(function(){return R(this)})),Object.defineProperty(String.prototype,"toBase64",b(function(C){return A(this,C)})),Object.defineProperty(String.prototype,"toBase64URI",b(function(){return A(this,!0)}))}}return n.Meteor&&(Base64=n.Base64),O.exports?O.exports.Base64=n.Base64:(e=[],void 0!==(o=function(){return n.Base64}.apply(v,e))&&(O.exports=o)),{Base64:n.Base64}}(n)},53781:O=>{"use strict";O.exports=Math.log2||function(v){return Math.log(v)*Math.LOG2E}},73905:(O,v,e)=>{"use strict";e.r(v),e.d(v,{default:()=>d});var o=Number.isNaN||function(c){return"number"==typeof c&&c!=c};function n(u,c){return!!(u===c||o(u)&&o(c))}function l(u,c){if(u.length!==c.length)return!1;for(var t=0;t<u.length;t++)if(!n(u[t],c[t]))return!1;return!0}const d=function(u,c){void 0===c&&(c=l);var t,i,h=[],s=!1;return function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];return s&&t===this&&c(f,h)||(i=u.apply(this,f),s=!0,t=this,h=f),i}}},57942:(O,v,e)=>{var o=e(11620),n=/[\/\+\.]/;O.exports=function(l,a){function d(u){var c=o(u,l,n);return c&&c.length>=2}return a?d(a.split(";")[0]):d}},77461:O=>{O.exports=function(){var e={},o=e._fns={};return e.emit=function(d,u,c,t,h,i,s){var r=function(a){var d=o[a]?o[a]:[],u=a.indexOf(":"),c=-1===u?[a]:[a.substring(0,u),a.substring(u+1)],t=Object.keys(o),h=0,i=t.length;for(;h<i;h++){var s=t[h];if("*"===s&&(d=d.concat(o[s])),2===c.length&&c[0]===s){d=d.concat(o[s]);break}}return d}(d);r.length&&function(a,d,u){var c=0,t=d.length;for(;c<t&&d[c];c++)d[c].event=a,d[c].apply(d[c],u)}(d,r,[u,c,t,h,i,s])},e.on=function(d,u){o[d]||(o[d]=[]),o[d].push(u)},e.once=function(d,u){this.on(d,function c(){u.apply(this,arguments),e.off(d,c)})},e.off=function(d,u){var c=[];if(d&&u)for(var t=this._fns[d],h=0,i=t?t.length:0;h<i;h++)t[h]!==u&&c.push(t[h]);c.length?this._fns[d]=c:delete this._fns[d]},e}},55893:(O,v,e)=>{"use strict";e.d(v,{pL:()=>c,m9:()=>d});var o=e(89724),n=e(49457),a=e(19725);class d{get isFileSaverSupported(){try{return!!new Blob}catch(h){return!1}}genType(h){if(!h||-1===h.lastIndexOf("."))return"text/plain";const i=h.substr(h.lastIndexOf(".")+1);switch(i){case"txt":return"text/plain";case"xml":case"html":return`text/${i}`;case"json":return"octet/stream";default:return`application/${i}`}}save(h,i,s,r){if(!h)throw new Error("Data argument should be a blob instance");const f=new Blob([h],{type:s||h.type||this.genType(i)});
8(0,n.saveAs)(f,decodeURI(i||"download"),r)}saveText(h,i,s){const r=new Blob([h]);this.save(r,i,void 0,s)}}d.\u0275fac=function(h){return new(h||d)},d.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"});class u{constructor(h,i,s){this.el=h,this.fss=i,this.httpClient=s,this.method="GET",this.success=new o.vpe,this.error=new o.vpe,i.isFileSaverSupported||h.nativeElement.classList.add("filesaver__not-support")}getName(h){return decodeURI(this.fileName||h.headers.get("filename")||h.headers.get("x-filename")||"")}_click(){if(!this.fss.isFileSaverSupported)return;let h=this.http;if(!h){let i=new a.LE;const s=this.query||{};for(const r in s)i=i.set(r,s[r]);h=this.httpClient.request(this.method,this.url,{observe:"response",responseType:"blob",headers:this.header,params:i})}this.setDisabled(!0),h.subscribe(i=>{200!==i.status||i.body.size<=0?this.error.emit(i):(this.fss.save(i.body,this.getName(i),void 0,this.fsOptions),this.success.emit(i))},i=>this.error.emit(i),()=>this.setDisabled(!1))}setDisabled(h){const i=this.el.nativeElement;i.disabled=h,i.classList[h?"add":"remove"]("filesaver__disabled")}}u.\u0275fac=function(h){return new(h||u)(o.Y36(o.SBq),o.Y36(d),o.Y36(a.eN))},u.\u0275dir=o.lG2({type:u,selectors:[["","fileSaver",""]],hostBindings:function(h,i){1&h&&o.NdJ("click",function(){return i._click()})},inputs:{method:"method",http:"http",query:"query",header:"header",url:"url",fileName:"fileName",fsOptions:"fsOptions"},outputs:{success:"success",error:"error"},exportAs:["fileSaver"]});class c{}c.\u0275fac=function(h){return new(h||c)},c.\u0275mod=o.oAB({type:c,declarations:[u],exports:[u]}),c.\u0275inj=o.cJS({})},21015:(O,v,e)=>{"use strict";e.d(v,{F:()=>l});var o=e(89724);class n{constructor(d){this.stickyElement=d,this._debugMode=!1,this.classWhenSticky="",this.zIndex=10,this.top=0,e(87240)}get scrollContainer(){return this._scrollContainer}set scrollContainer(d){this.setHTMLElement("_scrollContainer",d)}get triggerOn(){return this._triggerOn}set triggerOn(d){this.setHTMLElement("_triggerOn",d)}get debugMode(){return this._debugMode}set debugMode(d){this._debugMode=d,this._debugMode&&this.sentinel?(this.sentinel.style.backgroundColor="rgba(255, 0, 0, 0.5)",this.sentinel.style.visibility="unset"):!this._debugMode&&this.sentinel&&(this.sentinel.style.visibility="hidden")}ngOnInit(){this.makeSticky()}ngAfterViewInit(){this.putSentinel(),this.setObserver()}setHTMLElement(d,u){"string"==typeof u?this[d]=document.getElementById(u):u instanceof o.SBq?this[d]=u.nativeElement:this[d]=u}makeSticky(){const d=this.stickyElement.nativeElement;this.setStylePropertyToElement(d,"position","-webkit-sticky"),this.setStylePropertyToElement(d,"position","sticky"),this.setStylePropertyToElement(d,"top",`${this.top}px`),this.setStylePropertyToElement(d,"zIndex",this.zIndex.toString())}setStylePropertyToElement(d,u,c){d.style[u.toString()]=c}setObserver(){new IntersectionObserver(u=>this.onAppears(u),{threshold:[0],root:this.scrollContainer}).observe(this.sentinel)}onAppears(d){for(const u of d){const c=this.stickyElement.nativeElement,t=u.boundingClientRect,h=u.rootBounds;t.bottom<h.top&&c.classList.add(this.classWhenSticky),t.bottom>=h.top&&t.bottom<h.bottom&&c.classList.remove(this.classWhenSticky)}}generateSentinelElement(){const d=document.createElement("div");return d.style.height="50px",d.style.width="100%",d.style.position="absolute",d.style.visibility="hidden",this._debugMode&&(d.style.backgroundColor="rgba(255, 0, 0, 0.5)",d.style.visibility="unset"),d}putSentinel(){const d=this.generateSentinelElement();this.sentinel=this.triggerOn.insertAdjacentElement("afterbegin",d)}}n.\u0275fac=function(d){return new(d||n)(o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n,selectors:[["","ngxSticky",""]],inputs:{classWhenSticky:"classWhenSticky",zIndex:"zIndex",top:"top",scrollContainer:"scrollContainer",triggerOn:"triggerOn",debugMode:"debugMode"}}),n.ctorParameters=()=>[{type:o.SBq}],n.propDecorators={scrollContainer:[{type:o.IIB}],triggerOn:[{type:o.IIB}],debugMode:[{type:o.IIB}],classWhenSticky:[{type:o.IIB}],zIndex:[{type:o.IIB}],top:[{type:o.IIB}]};class l{}l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&o.kYT(l,{declarations:[n],exports:[n]})},87240:()=>{!function(O,v){"use strict";if("IntersectionObserver"in O&&"IntersectionObserverEntry"in O&&"intersectionRatio"in O.IntersectionObserverEntry.prototype)"isIntersecting"in O.IntersectionObserverEntry.prototype||Ob
8ject.defineProperty(O.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(r){if(!this._observationTargets.some(function(g){return g.element==r})){if(!r||1!=r.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:r,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(r){this._observationTargets=this._observationTargets.filter(function(f){return f.element!=r}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var r=this._queuedEntries.slice();return this._queuedEntries=[],r},n.prototype._initThresholds=function(r){var f=r||[0];return Array.isArray(f)||(f=[f]),f.sort().filter(function(g,A,w){if("number"!=typeof g||isNaN(g)||g<0||g>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return g!==w[A-1]})},n.prototype._parseRootMargin=function(r){var g=(r||"0px").split(/\s+/).map(function(A){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(A);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return g[1]=g[1]||g[0],g[2]=g[2]||g[0],g[3]=g[3]||g[1],g},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(d(O,"resize",this._checkForIntersections,!0),d(v,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in O&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(v,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,u(O,"resize",this._checkForIntersections,!0),u(v,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var r=this._rootIsInDom(),f=r?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(g){var A=g.element,w=t(A),U=this._rootContainsTarget(A),F=g.entry,y=r&&U&&this._computeTargetAndRootIntersection(A,f),S=g.entry=new o({time:O.performance&&performance.now&&performance.now(),target:A,boundingClientRect:w,rootBounds:f,intersectionRect:y});F?r&&U?this._hasCrossedThreshold(F,S)&&this._queuedEntries.push(S):F&&F.isIntersecting&&this._queuedEntries.push(S):this._queuedEntries.push(S)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(r,f){if("none"!=O.getComputedStyle(r).display){for(var A=t(r),w=s(r),U=!1;!U;){var F=null,y=1==w.nodeType?O.getComputedStyle(w):{};if("none"==y.display)return;if(w==this.root||w==v?(U=!0,F=f):w!=v.body&&w!=v.documentElement&&"visible"!=y.overflow&&(F=t(w)),F&&!(A=c(F,A)))break;w=s(w)}return A}},n.prototype._getRootRect=function(){var r;if(this.root)r=t(this.root);else{var f=v.documentElement,g=v.body;r={top:0,left:0,right:f.clientWidth||g.clientWidth,width:f.clientWidth||g.clientWidth,bottom:f.clientHeight||g.clientHeight,height:f.clientHeight||g.clientHeight}}return this._expandRectByRootMargin(r)},n.prototype._expandRectByRootMargin=function(r){var f=this._rootMarginValues.map(function(A,w){return"px"==A.unit?A.value:A.value*(w%2?r.width:r.height)/100}),g={top:r.top-f[0],right:r.right+f[1],bottom:r.bottom+f[2],left:r.left-f[3]};return g.width=g.right-g.left,g.height=g.bottom-g.top,g},n.prototype._hasCrossedThreshold=function(r,f){var g=r&&r.isIntersecting?r.intersectionRatio||0:-1,A=f.isIntersecting?f.intersectionRatio||0:-1;if(g!==A)for(var w=0;w<this.thresholds.length;w++){var U=this.thresholds[w];if(U==g||U==A||U<g!=U<A)return!0}},n.prototype._rootIsInDom=function(){return!this.root||i(v,this.root)},n.prototype._rootContainsTarget=function(r){return i(this.root||v,r)},n.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},n.prototype._unregisterInstance=function(){var r=e.indexOf(this);-1!=r&&e.splice(r,1)},O.IntersectionObserver=n,O.IntersectionObserverEntry=o}
8function o(r){this.time=r.time,this.target=r.target,this.rootBounds=r.rootBounds,this.boundingClientRect=r.boundingClientRect,this.intersectionRect=r.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!r.intersectionRect;var f=this.boundingClientRect,g=f.width*f.height,A=this.intersectionRect,w=A.width*A.height;this.intersectionRatio=g?Number((w/g).toFixed(4)):this.isIntersecting?1:0}function n(r,f){var g=f||{};if("function"!=typeof r)throw new Error("callback must be a function");if(g.root&&1!=g.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(r,f){var g=null;return function(){g||(g=setTimeout(function(){r(),g=null},f))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=r,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(g.rootMargin),this.thresholds=this._initThresholds(g.threshold),this.root=g.root||null,this.rootMargin=this._rootMarginValues.map(function(A){return A.value+A.unit}).join(" ")}function d(r,f,g,A){"function"==typeof r.addEventListener?r.addEventListener(f,g,A||!1):"function"==typeof r.attachEvent&&r.attachEvent("on"+f,g)}function u(r,f,g,A){"function"==typeof r.removeEventListener?r.removeEventListener(f,g,A||!1):"function"==typeof r.detatchEvent&&r.detatchEvent("on"+f,g)}function c(r,f){var g=Math.max(r.top,f.top),A=Math.min(r.bottom,f.bottom),w=Math.max(r.left,f.left),U=Math.min(r.right,f.right),F=U-w,y=A-g;return F>=0&&y>=0&&{top:g,bottom:A,left:w,right:U,width:F,height:y}}function t(r){var f;try{f=r.getBoundingClientRect()}catch(g){}return f?(f.width&&f.height||(f={top:f.top,right:f.right,bottom:f.bottom,left:f.left,width:f.right-f.left,height:f.bottom-f.top}),f):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function i(r,f){for(var g=f;g;){if(g==r)return!0;g=s(g)}return!1}function s(r){var f=r.parentNode;return f&&11==f.nodeType&&f.host?f.host:f}}(window,document)},39603:(O,v)=>{v.encode=function(e){var o="";for(var n in e)e.hasOwnProperty(n)&&(o.length&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return o},v.decode=function(e){for(var o={},n=e.split("&"),l=0,a=n.length;l<a;l++){var d=n[l].split("=");o[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return o}},44171:O=>{var v=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];O.exports=function(n){var l=n,a=n.indexOf("["),d=n.indexOf("]");-1!=a&&-1!=d&&(n=n.substring(0,a)+n.substring(a,d).replace(/:/g,";")+n.substring(d,n.length));for(var u=v.exec(n||""),c={},t=14;t--;)c[e[t]]=u[t]||"";return-1!=a&&-1!=d&&(c.source=l,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c}},79606:(O,v,e)=>{"use strict";function o(){}e.r(v),e.d(v,{default:()=>ve,h:()=>d,createElement:()=>d,cloneElement:()=>t,Component:()=>se,render:()=>le,rerender:()=>r,options:()=>n});var n={},l=[],a=[];function d(z,te){var ce,we,Fe,Oe,me=a;for(Oe=arguments.length;Oe-- >2;)l.push(arguments[Oe]);for(te&&null!=te.children&&(l.length||l.push(te.children),delete te.children);l.length;)if((we=l.pop())&&void 0!==we.pop)for(Oe=we.length;Oe--;)l.push(we[Oe]);else"boolean"==typeof we&&(we=null),(Fe="function"!=typeof z)&&(null==we?we="":"number"==typeof we?we=String(we):"string"!=typeof we&&(Fe=!1)),Fe&&ce?me[me.length-1]+=we:me===a?me=[we]:me.push(we),ce=Fe;var Ne=new o;return Ne.nodeName=z,Ne.children=me,Ne.attributes=null==te?void 0:te,Ne.key=null==te?void 0:te.key,void 0!==n.vnode&&n.vnode(Ne),Ne}function u(z,te){for(var me in te)z[me]=te[me];return z}var c="function"==typeof Promise?Promise.resolve().then.bind(Prom
8ise.resolve()):setTimeout;function t(z,te){return d(z.nodeName,u(u({},z.attributes),te),arguments.length>2?[].slice.call(arguments,2):z.children)}var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,i=[];function s(z){!z._dirty&&(z._dirty=!0)&&1==i.push(z)&&(n.debounceRendering||c)(r)}function r(){var z,te=i;for(i=[];z=te.pop();)z._dirty&&j(z)}function f(z,te,me){return"string"==typeof te||"number"==typeof te?void 0!==z.splitText:"string"==typeof te.nodeName?!z._componentConstructor&&g(z,te.nodeName):me||z._componentConstructor===te.nodeName}function g(z,te){return z.normalizedNodeName===te||z.nodeName.toLowerCase()===te.toLowerCase()}function A(z){var te=u({},z.attributes);te.children=z.children;var me=z.nodeName.defaultProps;if(void 0!==me)for(var ce in me)void 0===te[ce]&&(te[ce]=me[ce]);return te}function U(z){var te=z.parentNode;te&&te.removeChild(z)}function F(z,te,me,ce,we){if("className"===te&&(te="class"),"key"!==te)if("ref"===te)me&&me(null),ce&&ce(z);else if("class"!==te||we)if("style"===te){if((!ce||"string"==typeof ce||"string"==typeof me)&&(z.style.cssText=ce||""),ce&&"object"==typeof ce){if("string"!=typeof me)for(var Fe in me)Fe in ce||(z.style[Fe]="");for(var Fe in ce)z.style[Fe]="number"==typeof ce[Fe]&&!1===h.test(Fe)?ce[Fe]+"px":ce[Fe]}}else if("dangerouslySetInnerHTML"===te)ce&&(z.innerHTML=ce.__html||"");else if("o"==te[0]&&"n"==te[1]){var Oe=te!==(te=te.replace(/Capture$/,""));te=te.toLowerCase().substring(2),ce?me||z.addEventListener(te,S,Oe):z.removeEventListener(te,S,Oe),(z._listeners||(z._listeners={}))[te]=ce}else if("list"!==te&&"type"!==te&&!we&&te in z)(function(z,te,me){try{z[te]=me}catch(ce){}})(z,te,null==ce?"":ce),(null==ce||!1===ce)&&z.removeAttribute(te);else{var Ne=we&&te!==(te=te.replace(/^xlink:?/,""));null==ce||!1===ce?Ne?z.removeAttributeNS("http://www.w3.org/1999/xlink",te.toLowerCase()):z.removeAttribute(te):"function"!=typeof ce&&(Ne?z.setAttributeNS("http://www.w3.org/1999/xlink",te.toLowerCase(),ce):z.setAttribute(te,ce))}else z.className=ce||""}function S(z){return this._listeners[z.type](n.event&&n.event(z)||z)}var x=[],L=0,H=!1,K=!1;function N(){for(var z;z=x.pop();)n.afterMount&&n.afterMount(z),z.componentDidMount&&z.componentDidMount()}function R(z,te,me,ce,we,Fe){L++||(H=null!=we&&void 0!==we.ownerSVGElement,K=null!=z&&!("__preactattr_"in z));var Oe=_(z,te,me,ce,Fe);return we&&Oe.parentNode!==we&&we.appendChild(Oe),--L||(K=!1,Fe||N()),Oe}function _(z,te,me,ce,we){var Fe=z,Oe=H;if((null==te||"boolean"==typeof te)&&(te=""),"string"==typeof te||"number"==typeof te)return z&&void 0!==z.splitText&&z.parentNode&&(!z._component||we)?z.nodeValue!=te&&(z.nodeValue=te):(Fe=document.createTextNode(te),z&&(z.parentNode&&z.parentNode.replaceChild(Fe,z),b(z,!0))),Fe.__preactattr_=!0,Fe;var Ne=te.nodeName;if("function"==typeof Ne)return function(z,te,me,ce){for(var we=z&&z._component,Fe=we,Oe=z,Ne=we&&z._componentConstructor===te.nodeName,Ce=Ne,Ee=A(te);we&&!Ce&&(we=we._parentComponent);)Ce=we.constructor===te.nodeName;return we&&Ce&&(!ce||we._component)?(Y(we,Ee,3,me,ce),z=we.base):(Fe&&!Ne&&(ne(Fe),z=Oe=null),we=B(te.nodeName,Ee,me),z&&!we.nextBase&&(we.nextBase=z,Oe=null),Y(we,Ee,1,me,ce),z=we.base,Oe&&z!==Oe&&(Oe._component=null,b(Oe,!1))),z}(z,te,me,ce);if(H="svg"===Ne||"foreignObject"!==Ne&&H,Ne=String(Ne),(!z||!g(z,Ne))&&(Fe=function(z,te){var me=te?document.createElementNS("http://www.w3.org/2000/svg",z):document.createElement(z);return me.normalizedNodeName=z,me}(Ne,H),z)){for(;
8z.firstChild;)Fe.appendChild(z.firstChild);z.parentNode&&z.parentNode.replaceChild(Fe,z),b(z,!0)}var Ce=Fe.firstChild,Ee=Fe.__preactattr_,xe=te.children;if(null==Ee){Ee=Fe.__preactattr_={};for(var Te=Fe.attributes,Be=Te.length;Be--;)Ee[Te[Be].name]=Te[Be].value}return!K&&xe&&1===xe.length&&"string"==typeof xe[0]&&null!=Ce&&void 0!==Ce.splitText&&null==Ce.nextSibling?Ce.nodeValue!=xe[0]&&(Ce.nodeValue=xe[0]):(xe&&xe.length||null!=Ce)&&function(z,te,me,ce,we){var ze,Pe,je,Le,He,Fe=z.childNodes,Oe=[],Ne={},Ce=0,Ee=0,xe=Fe.length,Te=0,Be=te?te.length:0;if(0!==xe)for(var qe=0;qe<xe;qe++){var Ke=Fe[qe],Je=Ke.__preactattr_;null!=(tt=Be&&Je?Ke._component?Ke._component.__key:Je.key:null)?(Ce++,Ne[tt]=Ke):(Je||(void 0!==Ke.splitText?!we||Ke.nodeValue.trim():we))&&(Oe[Te++]=Ke)}if(0!==Be)for(qe=0;qe<Be;qe++){var tt;if(He=null,null!=(tt=(Le=te[qe]).key))Ce&&void 0!==Ne[tt]&&(He=Ne[tt],Ne[tt]=void 0,Ce--);else if(!He&&Ee<Te)for(ze=Ee;ze<Te;ze++)if(void 0!==Oe[ze]&&f(Pe=Oe[ze],Le,we)){He=Pe,Oe[ze]=void 0,ze===Te-1&&Te--,ze===Ee&&Ee++;break}He=_(He,Le,me,ce),je=Fe[qe],He&&He!==z&&He!==je&&(null==je?z.appendChild(He):He===je.nextSibling?U(je):z.insertBefore(He,je))}if(Ce)for(var qe in Ne)void 0!==Ne[qe]&&b(Ne[qe],!1);for(;Ee<=Te;)void 0!==(He=Oe[Te--])&&b(He,!1)}(Fe,xe,me,ce,K||null!=Ee.dangerouslySetInnerHTML),function(z,te,me){var ce;for(ce in me)(!te||null==te[ce])&&null!=me[ce]&&F(z,ce,me[ce],me[ce]=void 0,H);for(ce in te)"children"!==ce&&"innerHTML"!==ce&&(!(ce in me)||te[ce]!==("value"===ce||"checked"===ce?z[ce]:me[ce]))&&F(z,ce,me[ce],me[ce]=te[ce],H)}(Fe,te.attributes,Ee),H=Oe,Fe}function b(z,te){var me=z._component;me?ne(me):(null!=z.__preactattr_&&z.__preactattr_.ref&&z.__preactattr_.ref(null),(!1===te||null==z.__preactattr_)&&U(z),C(z))}function C(z){for(z=z.lastChild;z;){var te=z.previousSibling;b(z,!0),z=te}}var I={};function B(z,te,me){var we,ce=I[z.name];if(z.prototype&&z.prototype.render?(we=new z(te,me),se.call(we,te,me)):((we=new se(te,me)).constructor=z,we.render=p),ce)for(var Fe=ce.length;Fe--;)if(ce[Fe].constructor===z){we.nextBase=ce[Fe].nextBase,ce.splice(Fe,1);break}return we}function p(z,te,me){return this.constructor(z,me)}function Y(z,te,me,ce,we){z._disable||(z._disable=!0,(z.__ref=te.ref)&&delete te.ref,(z.__key=te.key)&&delete te.key,!z.base||we?z.componentWillMount&&z.componentWillMount():z.componentWillReceiveProps&&z.componentWillReceiveProps(te,ce),ce&&ce!==z.context&&(z.prevContext||(z.prevContext=z.context),z.context=ce),z.prevProps||(z.prevProps=z.props),z.props=te,z._disable=!1,0!==me&&(1!==me&&!1===n.syncComponentUpdates&&z.base?s(z):j(z,1,we)),z.__ref&&z.__ref(z))}function j(z,te,me,ce){if(!z._disable){var je,Le,He,we=z.props,Fe=z.state,Oe=z.context,Ne=z.prevProps||we,Ce=z.prevState||Fe,Ee=z.prevContext||Oe,xe=z.base,Te=z.nextBase,Be=xe||Te,ze=z._component,Pe=!1;if(xe&&(z.props=Ne,z.state=Ce,z.context=Ee,2!==te&&z.shouldComponentUpdate&&!1===z.shouldComponentUpdate(we,Fe,Oe)?Pe=!0:z.componentWillUpdate&&z.componentWillUpdate(we,Fe,Oe),z.props=we,z.state=Fe,z.context=Oe),z.prevProps=z.prevState=z.prevContext=z.nextBase=null,z._dirty=!1,!Pe){je=z.render(we,Fe,Oe),z.getChildContext&&(Oe=u(u({},Oe),z.getChildContext()));var Ke,Je,qe=je&&je.nodeName;if("function"==typeof qe){var tt=A(je);(Le=ze)&&Le.constructor===qe&&tt.key==Le.__key?Y(Le,tt,1,Oe,!1):(Ke=Le,z._component=Le=B(qe,tt,Oe),Le.nextBase=Le.nextBase||Te,Le._parentComponent=z,Y(Le,tt,0,Oe,!1),j(Le,1,me,!0)),Je=Le.base}else He=Be,(Ke=ze)&&(He=z._component=null),(Be||1===te)&&(He&&(He._component=null),Je=R(He,je,Oe,me||!xe,Be&&Be.parentNode,!0));if(Be&&Je!==Be&&Le!==ze){var it=Be.parentNode;it&&Je!==it&&(it.replaceChild(Je,Be),Ke||(Be._component=null,b(Be,!1)))}if(Ke&&ne(Ke),z.base=Je,Je&&!ce){for(var at=z,ct=z;ct=ct._parentComponent;)(at=ct).base=Je;Je._component=at,Je._componentConstructor=at.constructor}}if(!xe||me?x.unshift(z):Pe||(z.componentDidUpdate&&z.componentDidUpdate(Ne,Ce,Ee),n.afterUpdate&&n.afterUpdate(z)),null!=z._renderCallbacks)for(;z._renderCallbacks.length;)z._renderCallbacks.pop().call(z);!L&&!ce&&N()}}function ne(z){n.beforeUnmount&&n.beforeUnmount(z);var te=z.base;z._disable=!0,z.componentWillUnmount&&z.componentWillUnmount(),z.base
8=null;var me=z._component;me?ne(me):te&&(te.__preactattr_&&te.__preactattr_.ref&&te.__preactattr_.ref(null),z.nextBase=te,U(te),function(z){var te=z.constructor.name;(I[te]||(I[te]=[])).push(z)}(z),C(te)),z.__ref&&z.__ref(null)}function se(z,te){this._dirty=!0,this.context=te,this.props=z,this.state=this.state||{}}function le(z,te,me){return R(me,z,{},!1,te,!1)}u(se.prototype,{setState:function(te,me){var ce=this.state;this.prevState||(this.prevState=u({},ce)),u(ce,"function"==typeof te?te(ce,this.props):te),me&&(this._renderCallbacks=this._renderCallbacks||[]).push(me),s(this)},forceUpdate:function(te){te&&(this._renderCallbacks=this._renderCallbacks||[]).push(te),j(this,2)},render:function(){}});const ve={h:d,createElement:d,cloneElement:t,Component:se,render:le,rerender:r,options:n}},3673:O=>{window,O.exports=function(v){var e={};function o(n){if(e[n])return e[n].exports;var l=e[n]={i:n,l:!1,exports:{}};return v[n].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=v,o.c=e,o.d=function(n,l,a){o.o(n,l)||Object.defineProperty(n,l,{enumerable:!0,get:a})},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,l){if(1&l&&(n=o(n)),8&l||4&l&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&l&&"string"!=typeof n)for(var d in n)o.d(a,d,function(u){return n[u]}.bind(null,d));return a},o.n=function(n){var l=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(l,"a",l),l},o.o=function(n,l){return Object.prototype.hasOwnProperty.call(n,l)},o.p="",o(o.s=0)}({
8"./src/index.js":function(v,e,o){"use strict";o.r(e),o("./src/sass/index.scss");var d=o("./src/js/init.js").default.init;"undefined"!=typeof window&&(window.printJS=d),e.default=d},
8"./src/js/browser.js":function(v,e,o){"use strict";o.r(e);var n={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!n.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};e.default=n},
8"./src/js/functions.js":function(v,e,o){"use strict";o.r(e),o.d(e,"addWrapper",function(){return d}),o.d(e,"capitalizePrint",function(){return u}),o.d(e,"collectStyles",function(){return c}),o.d(e,"addHeader",function(){return h}),o.d(e,"cleanUp",function(){return i}),o.d(e,"isRawHTML",function(){return s});var n=o("./src/js/modal.js"),l=o("./src/js/browser.js");function a(r){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(r)}function d(r,f){return'<div style="font-family:'+f.font+" !important; font-size: "+f.font_size+' !important; width:100%;">'+r+"</div>"}function u(r){return r.charAt(0).toUpperCase()+r.slice(1)}function c(r,f){for(var A="",w=(document.defaultView||window).getComputedStyle(r,""),U=0;U<w.length;U++)(-1!==f.targetStyles.indexOf("*")||-1!==f.targetStyle.indexOf(w[U])||t(f.targetStyles,w[U]))&&w.getPropertyValue(w[U])&&(A+=w[U]+":"+w.getPropertyValue(w[U])+";");return A+="max-width: "+f.maxWidth+"px !important; font-size: "+f.font_size+" !important;"}function t(r,f){for(var g=0;g<r.length;g++)if("object"===a(f)&&-1!==f.indexOf(r[g]))return!0;return!1}function h(r,f){var g=document.createElement("div");if(s(f.header))g.innerHTML=f.header;else{var A=document.createElement("h1"),w=document.createTextNode(f.header);A.appendChild(w),A.setAttribute("style",f.headerStyle),g.appendChild(A)}r.insertBefore(g,r.childNodes[0])}function i(r){r.showModal&&n.default.close(),r.onLoadingEnd&&r.onLoadingEnd(),(r.showModal||r.onLoadingStart)&&window.URL.revokeObjectURL(r.printable);var f="mouseover";(l.default.isChrome()||l.default.isFirefox())&&(f="focus");var g=function A(){window.removeEventListener(f,A),r.onPrintDialogClose();var w=document.getElementById(r.frameId);w&&w.remove()};window.addEventListener(f,g)}function s(r){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(r)}},
8"./src/js/html.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/functions.js"),l=o("./src/js/print.js");function a(c){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(c)}function d(c,t){for(var h=c.cloneNode(),i=Array.prototype.slice.call(c.childNodes),s=0;s<i.length;s++)if(-1===t.ignoreElements.indexOf(i[s].id)){var r=d(i[s],t);h.appendChild(r)}switch(t.scanStyles&&1===c.nodeType&&h.setAttribute("style",Object(n.collectStyles)(c,t)),c.tagName){case"SELECT":h.value=c.value;break;case"CANVAS":h.getContext("2d").drawImage(c,0,0)}return h}function u(c){return"object"===a(c)&&c&&(c instanceof HTMLElement||1===c.nodeType)}e.default={print:function(t,h){var i=u(t.printable)?t.printable:document.getElementById(t.printable);i?(t.printableElement=d(i,t),t.header&&Object(n.addHeader)(t.printableElement,t),l.default.send(t,h)):window.console.error("Invalid HTML element id: "+t.printable)}}},
vendor: 4,041 bytes, line 8
8"./src/js/image.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/functions.js"),l=o("./src/js/print.js"),a=o("./src/js/browser.js");e.default={print:function(u,c){u.printable.constructor!==Array&&(u.printable=[u.printable]),u.printableElement=document.createElement("div"),u.printable.forEach(function(t){var h=document.createElement("img");if(h.setAttribute("style",u.imageStyle),h.src=t,a.default.isFirefox()){var i=h.src;h.src=i}var s=document.createElement("div");s.appendChild(h),u.printableElement.appendChild(s)}),u.header&&Object(n.addHeader)(u.printableElement,u),l.default.send(u,c)}}},"./src/js/init.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/browser.js"),l=o("./src/js/modal.js"),a=o("./src/js/pdf.js"),d=o("./src/js/html.js"),u=o("./src/js/raw-html.js"),c=o("./src/js/image.js"),t=o("./src/js/json.js");function h(s){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(s)}var i=["pdf","html","image","json","raw-html"];e.default={init:function(){var r={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(y){throw y},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},f=arguments[0];if(void 0===f)throw new Error("printJS expects at least 1 attribute.");switch(h(f)){case"string":r.printable=encodeURI(f),r.fallbackPrintable=r.printable,r.type=arguments[1]||r.type;break;case"object":for(var g in r.printable=f.printable,r.fallbackPrintable=void 0!==f.fallbackPrintable?f.fallbackPrintable:r.printable,r.fallbackPrintable=r.base64?"data:application/pdf;base64,".concat(r.fallbackPrintable):r.fallbackPrintable,r)"printable"===g||"fallbackPrintable"===g||(r[g]=void 0!==f[g]?f[g]:r[g]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+h(f))}if(!r.printable)throw new Error("Missing printable information.");if(!r.type||"string"!=typeof r.type||-1===i.indexOf(r.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");r.showModal&&l.default.show(r),r.onLoadingStart&&r.onLoadingStart();var A=document.getElementById(r.frameId);A&&A.parentNode.removeChild(A);var w=document.createElement("iframe");switch(n.default.isFirefox()?w.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):w.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),w.setAttribute("id",r.frameId),"pdf"!==r.type&&(w.srcdoc="<html><head><title>"+r.documentTitle+"</title>",r.css&&(Array.isArray(r.css)||(r.css=[r.css]),r.css.forEach(function(F){w.srcdoc+='<link rel="stylesheet" href="'+F+'">'})),w.srcdoc+="</head><body></body></html>"),r.type){case"pdf":if(n.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer."),window.open(r.fallbackPrintable,"_blank").focus(),r.onIncompatibleBrowser()}catch(F){r.onError(F)}finally{r.showModal&&l.default.close(),r.onLoadingEnd&&r.onLoadingEnd()}else a.default.print(r,w);break;case"image":c.default.print(r,w);break;case"html":d.default.print(r,w);break;case"raw-html":u.default.print(r,w);break;case"json":t.default.print(r,w)}}}},
8"./src/js/json.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/functions.js"),l=o("./src/js/print.js");function a(u){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(u)}function d(u){var c=u.printable,t=u.properties,h='<table style="border-collapse: collapse; width: 100%;">';u.repeatTableHeader&&(h+="<thead>"),h+="<tr>";for(var i=0;i<t.length;i++)h+='<th style="width:'+t[i].columnSize+";"+u.gridHeaderStyle+'">'+Object(n.capitalizePrint)(t[i].displayName)+"</th>";h+="</tr>",u.repeatTableHeader&&(h+="</thead>"),h+="<tbody>";for(var s=0;s<c.length;s++){h+="<tr>";for(var r=0;r<t.length;r++){var f=c[s],g=t[r].field.split(".");if(g.length>1)for(var A=0;A<g.length;A++)f=f[g[A]];else f=f[t[r].field];h+='<td style="width:'+t[r].columnSize+u.gridStyle+'">'+f+"</td>"}h+="</tr>"}return h+="</tbody></table>"}e.default={print:function(c,t){if("object"!==a(c.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof c.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!c.properties||!Array.isArray(c.properties))throw new Error("Invalid properties array for your JSON data.");c.properties=c.properties.map(function(h){return{field:"object"===a(h)?h.field:h,displayName:"object"===a(h)?h.displayName:h,columnSize:"object"===a(h)&&h.columnSize?h.columnSize+";":100/c.properties.length+"%;"}}),c.printableElement=document.createElement("div"),c.header&&Object(n.addHeader)(c.printableElement,c),c.printableElement.innerHTML+=d(c),l.default.send(c,t)}}},
8"./src/js/modal.js":function(v,e,o){"use strict";o.r(e);var n={show:function(a){var d="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",u=document.createElement("div");u.setAttribute("style",d),u.setAttribute("id","printJS-Modal");var c=document.createElement("div");c.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var t=document.createElement("div");t.setAttribute("class","printClose"),t.setAttribute("id","printClose"),c.appendChild(t);var h=document.createElement("span");h.setAttribute("class","printSpinner"),c.appendChild(h);var i=document.createTextNode(a.modalMessage);c.appendChild(i),u.appendChild(c),document.getElementsByTagName("body")[0].appendChild(u),document.getElementById("printClose").addEventListener("click",function(){n.close()})},close:function(){var a=document.getElementById("printJS-Modal");a&&a.parentNode.removeChild(a)}};e.default=n},
8"./src/js/pdf.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/print.js"),l=o("./src/js/functions.js");function a(d,u,c){var t=new window.Blob([c],{type:"application/pdf"});t=window.URL.createObjectURL(t),u.setAttribute("src",t),n.default.send(d,u)}e.default={print:function(u,c){if(u.base64){var t=Uint8Array.from(atob(u.printable),function(i){return i.charCodeAt(0)});a(u,c,t)}else{u.printable=/^(blob|http|\/\/)/i.test(u.printable)?u.printable:window.location.origin+("/"!==u.printable.charAt(0)?"/"+u.printable:u.printable);var h=new window.XMLHttpRequest;h.responseType="arraybuffer",h.addEventListener("error",function(){Object(l.cleanUp)(u),u.onError(h.statusText,h)}),h.addEventListener("load",function(){if(-1===[200,201].indexOf(h.status))return Object(l.cleanUp)(u),void u.onError(h.statusText,h);a(u,c,h.response)}),h.open("GET",u.printable,!0),h.send()}}}},
8"./src/js/print.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/browser.js"),l=o("./src/js/functions.js"),a={send:function(h,i){document.getElementsByTagName("body")[0].appendChild(i);var s=document.getElementById(h.frameId);s.onload=function(){if("pdf"!==h.type){var r=s.contentWindow||s.contentDocument;if(r.document&&(r=r.document),r.body.appendChild(h.printableElement),"pdf"!==h.type&&h.style){var f=document.createElement("style");f.innerHTML=h.style,r.head.appendChild(f)}var g=r.getElementsByTagName("img");g.length>0?u(Array.from(g)).then(function(){return d(s,h)}):d(s,h)}else n.default.isFirefox()?setTimeout(function(){return d(s,h)},1e3):d(s,h)}}};function d(t,h){try{if(t.focus(),n.default.isEdge()||n.default.isIE())try{t.contentWindow.document.execCommand("print",!1,null)}catch(i){t.contentWindow.print()}else t.contentWindow.print()}catch(i){h.onError(i)}finally{n.default.isFirefox()&&(t.style.visibility="hidden",t.style.left="-1px"),Object(l.cleanUp)(h)}}function u(t){var h=t.map(function(i){if(i.src&&i.src!==window.location.href)return c(i)});return Promise.all(h)}function c(t){return new Promise(function(h){!function s(){t&&void 0!==t.naturalWidth&&0!==t.naturalWidth&&t.complete?h():setTimeout(s,500)}()})}e.default=a},
8"./src/js/raw-html.js":function(v,e,o){"use strict";o.r(e);var n=o("./src/js/print.js");e.default={print:function(a,d){a.printableElement=document.createElement("div"),a.printableElement.setAttribute("style","width:100%"),a.printableElement.innerHTML=a.printable,n.default.send(a,d)}}},
8"./src/sass/index.scss":function(v,e,o){}
8,0:function(v,e,o){v.exports=o("./src/index.js")}}).default},4522:O=>{var v=Object.prototype.hasOwnProperty;O.exports=function e(o,n){var l=[];for(var a in o)if(v.call(o,a)){var c,d=o[a],u=encodeURIComponent(a);c="object"==typeof d?e(d,n?n+"["+u+"]":u):(n?n+"["+u+"]":u)+"="+encodeURIComponent(d),l.push(c)}return l.join("&")}},76959:(O,v)=>{"use strict";var e=Object.prototype.hasOwnProperty;function n(u){try{return decodeURIComponent(u.replace(/\+/g," "))}catch(c){return null}}function l(u){try{return encodeURIComponent(u)}catch(c){return null}}v.stringify=function(u,c){c=c||"";var h,i,t=[];for(i in"string"!=typeof c&&(c="?"),u)if(e.call(u,i)){if(!(h=u[i])&&(null==h||isNaN(h))&&(h=""),i=l(i),h=l(h),null===i||null===h)continue;t.push(i+"="+h)}return t.length?c+t.join("&"):""},v.parse=function(u){for(var h,c=/([^=?#&]+)=?([^&]*)/g,t={};h=c.exec(u);){var i=n(h[1]),s=n(h[2]);null===i||null===s||i in t||(t[i]=s)}return t}},93574:(O,v,e)=>{var o;window,O.exports=(o=e(72161),function(n){var l={};function a(d){if(l[d])return l[d].exports;var u=l[d]={i:d,l:!1,exports:{}};return n[d].call(u.exports,u,u.exports,a),u.l=!0,u.exports}return a.m=n,a.c=l,a.d=function(d,u,c){a.o(d,u)||Object.defineProperty(d,u,{enumerable:!0,get:c})},a.r=function(d){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},a.t=function(d,u){if(1&u&&(d=a(d)),8&u||4&u&&"object"==typeof d&&d&&d.__esModule)return d;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:d}),2&u&&"string"!=typeof d)for(var t in d)a.d(c,t,function(h){return d[h]}.bind(null,t));return c},a.n=function(d){var u=d&&d.__esModule?function(){return d.default}:function(){return d};return a.d(u,"a",u),u},a.o=function(d,u){return Object.prototype.hasOwnProperty.call(d,u)},a.p="",a(a.s=2)}([function(n,l,a){ 9/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */ 10n.exports=function(){"use strict";var d=Object.hasOwnProperty,u=Object.setPrototypeOf,c=Object.isFrozen,t=Object.keys,h=Object.freeze,i=Object.seal,s="undefined"!=typeof Reflect&&Reflect,r=s.apply,f=s.construct;r||(r=function(Ce,Ee,xe){return Ce.apply(Ee,xe)}),h||(h=function(Ce){return Ce}),i||(i=function(Ce){return Ce}),f||(f=function(Ce,Ee){return new(Function.prototype.bind.apply(Ce,[null].concat(function(xe){if(Array.isArray(xe)){for(var Te=0,Be=Array(xe.length);Te<xe.length;Te++)Be[Te]=xe[Te];return Be}return Array.from(xe)}(Ee))))});var g=m(Array.prototype.forEach),A=m(Array.prototype.indexOf),w=m(Array.prototype.join),U=m(Array.prototype.pop),F=m(Array.prototype.push),y=m(Array.prototype.slice),S=m(String.prototype.toLowerCase),x=m(String.prototype.match),L=m(String.prototype.replace),H=m(String.prototype.indexOf),K=m(String.prototype.trim),N=m(RegExp.prototype.test),R=b(RegExp),_=b(TypeError);function m(Ce){return function(Ee){for(var xe=arguments.length,Te=Array(xe>1?xe-1:0),Be=1;Be<xe;Be++)Te[Be-1]=arguments[Be];return r(Ce,Ee,Te)}}function b(Ce){return function(){for(var Ee=arguments.length,xe=Array(Ee),Te=0;Te<Ee;Te++)xe[Te]=arguments[Te];return f(Ce,xe)}}function C(Ce,Ee){u&&u(Ce,null);for(var xe=Ee.length;xe--;){var Te=Ee[xe];if("string"==typeof Te){var Be=S(Te);Be!==Te&&(c(Ee)||(Ee[xe]=Be),Te=Be)}Ce[Te]=!0}return Ce}function D(Ce){var Ee={},xe=void 0;for(xe in Ce)r(d,Ce,[xe])&&(Ee[xe]=Ce[xe]);return Ee}var I=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),B=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),p=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Y=h(["#text"]),j=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
10spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),ee=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ne=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),se=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),le=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),he=i(/<%[\s\S]*|[\s\S]*%>/gm),ve=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),te=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),me=i(/^(?:\w+script|data):/i),ce=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ce){return typeof Ce}:function(Ce){return Ce&&"function"==typeof Symbol&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce};function Fe(Ce){if(Array.isArray(Ce)){for(var Ee=0,xe=Array(Ce.length);Ee<Ce.length;Ee++)xe[Ee]=Ce[Ee];return xe}return Array.from(Ce)}var Oe=function(){return"undefined"==typeof window?null:window},Ne=function(Ce,Ee){if("object"!==(void 0===Ce?"undefined":we(Ce))||"function"!=typeof Ce.createPolicy)return null;var xe=null;Ee.currentScript&&Ee.currentScript.hasAttribute("data-tt-policy-suffix")&&(xe=Ee.currentScript.getAttribute("data-tt-policy-suffix"));var Te="dompurify"+(xe?"#"+xe:"");try{return Ce.createPolicy(Te,{createHTML:function(Be){return Be}})}catch(Be){return console.warn("TrustedTypes policy "+Te+" could not be created."),null}};return function Ce(){var Ee=arguments.length>
100&&void 0!==arguments[0]?arguments[0]:Oe(),xe=function(ae){return Ce(ae)};if(xe.version="2.0.11",xe.removed=[],!Ee||!Ee.document||9!==Ee.document.nodeType)return xe.isSupported=!1,xe;var Te=Ee.document,Be=!1,ze=Ee.document,Pe=Ee.DocumentFragment,je=Ee.HTMLTemplateElement,Le=Ee.Node,He=Ee.NodeFilter,qe=Ee.NamedNodeMap,Ke=void 0===qe?Ee.NamedNodeMap||Ee.MozNamedAttrMap:qe,Je=Ee.Text,tt=Ee.Comment,it=Ee.DOMParser,at=Ee.trustedTypes;if("function"==typeof je){var ct=ze.createElement("template");ct.content&&ct.content.ownerDocument&&(ze=ct.content.ownerDocument)}var ot=Ne(at,Te),Ze=ot?ot.createHTML(""):"",et=ze,ht=et.implementation,lt=et.createNodeIterator,gt=et.getElementsByTagName,mt=et.createDocumentFragment,_t=Te.importNode,Ye={};xe.isSupported=ht&&void 0!==ht.createHTMLDocument&&9!==ze.documentMode;var Pt=le,rt=he,bt=ve,ge=z,k=me,W=ce,q=te,re=null,ue=C({},[].concat(Fe(I),Fe(P),Fe(B),Fe(p),Fe(Y))),de=null,ye=C({},[].concat(Fe(j),Fe(ee),Fe(ne),Fe(se))),Ae=null,Ie=null,$e=!0,st=!0,J=!1,Q=!1,G=!1,Z=!1,pe=!1,_e=!1,ke=!1,We=!1,Xe=!1,Qe=!1,wt=!0,Rt=!0,Ct=!1,Dt={},Nt=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,ft=C({},["audio","video","img","source","image","track"]),It=null,Lt=C({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),vt=null,Kt=ze.createElement("form"),Et=function(ae){vt&&vt===ae||(ae&&"object"===(void 0===ae?"undefined":we(ae))||(ae={}),re="ALLOWED_TAGS"in ae?C({},ae.ALLOWED_TAGS):ue,de="ALLOWED_ATTR"in ae?C({},ae.ALLOWED_ATTR):ye,It="ADD_URI_SAFE_ATTR"in ae?C(D(Lt),ae.ADD_URI_SAFE_ATTR):Lt,pt="ADD_DATA_URI_TAGS"in ae?C(D(ft),ae.ADD_DATA_URI_TAGS):ft,Ae="FORBID_TAGS"in ae?C({},ae.FORBID_TAGS):{},Ie="FORBID_ATTR"in ae?C({},ae.FORBID_ATTR):{},Dt="USE_PROFILES"in ae&&ae.USE_PROFILES,$e=!1!==ae.ALLOW_ARIA_ATTR,st=!1!==ae.ALLOW_DATA_ATTR,J=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=ae.SAFE_FOR_JQUERY||!1,G=ae.SAFE_FOR_TEMPLATES||!1,Z=ae.WHOLE_DOCUMENT||!1,ke=ae.RETURN_DOM||!1,We=ae.RETURN_DOM_FRAGMENT||!1,Xe=ae.RETURN_DOM_IMPORT||!1,Qe=ae.RETURN_TRUSTED_TYPE||!1,_e=ae.FORCE_BODY||!1,wt=!1!==ae.SANITIZE_DOM,Rt=!1!==ae.KEEP_CONTENT,Ct=ae.IN_PLACE||!1,q=ae.ALLOWED_URI_REGEXP||q,G&&(st=!1),We&&(ke=!0),Dt&&(re=C({},[].concat(Fe(Y))),de=[],!0===Dt.html&&(C(re,I),C(de,j)),!0===Dt.svg&&(C(re,P),C(de,ee),C(de,se)),!0===Dt.svgFilters&&(C(re,B),C(de,ee),C(de,se)),!0===Dt.mathMl&&(C(re,p),C(de,ne),C(de,se))),ae.ADD_TAGS&&(re===ue&&(re=D(re)),C(re,ae.ADD_TAGS)),ae.ADD_ATTR&&(de===ye&&(de=D(de)),C(de,ae.ADD_ATTR)),ae.ADD_URI_SAFE_ATTR&&C(It,ae.ADD_URI_SAFE_ATTR),Rt&&(re["#text"]=!0),Z&&C(re,["html","head","body"]),re.table&&(C(re,["tbody"]),delete Ae.tbody),h&&h(ae),vt=ae)},Tt=function(ae){F(xe.removed,{element:ae});try{ae.parentNode.removeChild(ae)}catch(Ue){ae.outerHTML=Ze}},Mt=function(ae,Ue){try{F(xe.removed,{attribute:Ue.getAttributeNode(ae),from:Ue})}catch(Re){F(xe.removed,{attribute:null,from:Ue})}Ue.removeAttribute(ae)},zt=function(ae){var Ue=void 0,Re=void 0;if(_e)ae="<remove></remove>"+ae;else{var nt=x(ae,/^[\r\n\t ]+/);Re=nt&&nt[0]}var ut=ot?ot.createHTML(ae):ae;try{Ue=(new it).parseFromString(ut,"text/html")}catch(dt){}if(Be&&C(Ae,["title"]),!Ue||!Ue.documentElement){var yt=(Ue=ht.createHTMLDocument("")).body;yt.parentNode.removeChild(yt.parentNode.firstElementChild),yt.outerHTML=ut}return ae&&Re&&Ue.body.insertBefore(ze.createTextNode(Re),Ue.body.childNodes[0]||null),gt.call(Ue,Z?"html":"body")[0]};xe.isSupported&&function(){try{var ae=zt("<x/><title></title><img>");N(/<\/title/,ae.querySelector("title").innerHTML)&&(Be=!0)}catch(Ue){}}();var Gt=function(ae){return lt.call(ae.ownerDocument||ae,ae,He.SHOW_ELEMENT|He.SHOW_COMMENT|He.SHOW_TEXT,function(){return He.FILTER_ACCEPT},!1)},$t=function(ae){return!(ae instanceof Je||ae instanceof tt||"string"==typeof ae.nodeName&&"string"==typeof ae.textContent&&"function"==typeof ae.removeChild&&ae.attributes instanceof Ke&&"function"==typeof ae.removeAttribute&&"function"==typeof ae.setAttribute&&"string"==typeof ae.namespaceURI)},Ut=function(ae){return"object"===(void 0===Le?"undefined":we(Le))?ae instanceof Le:ae&&"object"===(void 0===ae?"undefined":we(ae))&&"number"==typeof ae.nodeType&&"string"==typeof ae.nodeName},xt=function(ae,Ue,Re){Ye[ae]&&g(Ye[ae],function(nt){nt.call(xe,Ue,Re,vt)})},jt=function(ae){var Ue=void 0;if(xt("beforeSanitizeElements",ae,null),$t(ae))return Tt(ae),!0;var Re=S(ae.nodeName);if(xt("uponSanitizeElement",ae,{tagName:Re,allowedTags:re}),("svg"===Re||"math"===Re)&&0!==ae.querySelectorAll("p, br").length)return Tt(ae),!0;if(!re[Re]||Ae[Re]){if(Rt&&!Nt[Re]&&"function"==typeof ae.insertAdjacentHTML)try{var nt=ae.innerHTML;ae.insertAdjacentHTML("AfterEnd",ot?ot.createHTML(nt):nt)}catch(ut){}return Tt(ae),!0}return"noscript"===Re&&N(/<\/noscript/i,ae.innerHTML)||"noembed"===Re&&N(/<\/noembed/i,ae.innerHTML)?(Tt(ae),!0):(!Q||ae.firstElementChild||ae.content&&ae.content.firstElementChild||!N(/</g,ae.textContent)||(F(xe.removed,{element:ae.cloneNode()}),ae.innerHTML?ae.innerHTML=L(ae.innerHTML,/</g,"<"):ae.innerHTML=L(ae.textContent,/</g,"<")),G&&3===ae.nodeType&&(Ue=ae.textContent,Ue=L(Ue,Pt," "),Ue=L(Ue,rt," "),ae.textContent!==Ue&&(F(xe.removed,{element:ae.cloneNode()}),ae.textContent=Ue)),xt("afterSanitizeElements",ae,null),!1)},Ht=function(ae,Ue,Re){if(wt&&("id"===Ue||"name"===Ue)&&(Re in ze||Re in Kt))return!1;if(!(st&&N(bt,Ue)||$e&&N(ge,Ue))){if(!de[Ue]||Ie[Ue])return!1;
10if(!It[Ue]&&!N(q,L(Re,W,""))&&("src"!==Ue&&"xlink:href"!==Ue&&"href"!==Ue||"script"===ae||0!==H(Re,"data:")||!pt[ae])&&(!J||N(k,L(Re,W,"")))&&Re)return!1}return!0},Wt=function(ae){var Ue=void 0,Re=void 0,nt=void 0,ut=void 0,yt=void 0;xt("beforeSanitizeAttributes",ae,null);var dt=ae.attributes;if(dt){var St={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:de};for(yt=dt.length;yt--;){var kt=Ue=dt[yt],Ot=kt.name,Vt=kt.namespaceURI;if(Re=K(Ue.value),nt=S(Ot),St.attrName=nt,St.attrValue=Re,St.keepAttr=!0,St.forceKeepAttr=void 0,xt("uponSanitizeAttribute",ae,St),Re=St.attrValue,!St.forceKeepAttr){if("name"===nt&&"IMG"===ae.nodeName&&dt.id)ut=dt.id,dt=y(dt,[]),Mt("id",ae),Mt(Ot,ae),A(dt,ut)>yt&&ae.setAttribute("id",ut.value);else{if("INPUT"===ae.nodeName&&"type"===nt&&"file"===Re&&St.keepAttr&&(de[nt]||!Ie[nt]))continue;"id"===Ot&&ae.setAttribute(Ot,""),Mt(Ot,ae)}if(St.keepAttr)if(Q&&N(/\/>/i,Re))Mt(Ot,ae);else if(N(/svg|math/i,ae.namespaceURI)&&N(R("</("+w(t(Nt),"|")+")","i"),Re))Mt(Ot,ae);else{G&&(Re=L(Re,Pt," "),Re=L(Re,rt," "));var Yt=ae.nodeName.toLowerCase();if(Ht(Yt,nt,Re))try{Vt?ae.setAttributeNS(Vt,Ot,Re):ae.setAttribute(Ot,Re),U(xe.removed)}catch(Xt){}}}}xt("afterSanitizeAttributes",ae,null)}},At=function ae(Ue){var Re=void 0,nt=Gt(Ue);for(xt("beforeSanitizeShadowDOM",Ue,null);Re=nt.nextNode();)xt("uponSanitizeShadowNode",Re,null),jt(Re)||(Re.content instanceof Pe&&ae(Re.content),Wt(Re));xt("afterSanitizeShadowDOM",Ue,null)};return xe.sanitize=function(ae,Ue){var Re=void 0,nt=void 0,ut=void 0,yt=void 0,dt=void 0;if(ae||(ae="\x3c!--\x3e"),"string"!=typeof ae&&!Ut(ae)){if("function"!=typeof ae.toString)throw _("toString is not a function");if("string"!=typeof(ae=ae.toString()))throw _("dirty is not a string, aborting")}if(!xe.isSupported){if("object"===we(Ee.toStaticHTML)||"function"==typeof Ee.toStaticHTML){if("string"==typeof ae)return Ee.toStaticHTML(ae);if(Ut(ae))return Ee.toStaticHTML(ae.outerHTML)}return ae}if(pe||Et(Ue),xe.removed=[],"string"==typeof ae&&(Ct=!1),!Ct)if(ae instanceof Le)1===(nt=(Re=zt("\x3c!--\x3e")).ownerDocument.importNode(ae,!0)).nodeType&&"BODY"===nt.nodeName||"HTML"===nt.nodeName?Re=nt:Re.appendChild(nt);else{if(!ke&&!G&&!Z&&Qe&&-1===ae.indexOf("<"))return ot?ot.createHTML(ae):ae;if(!(Re=zt(ae)))return ke?null:Ze}Re&&_e&&Tt(Re.firstChild);for(var St=Gt(Ct?ae:Re);ut=St.nextNode();)3===ut.nodeType&&ut===yt||jt(ut)||(ut.content instanceof Pe&&At(ut.content),Wt(ut),yt=ut);if(yt=null,Ct)return ae;if(ke){if(We)for(dt=mt.call(Re.ownerDocument);Re.firstChild;)dt.appendChild(Re.firstChild);else dt=Re;return Xe&&(dt=_t.call(Te,dt,!0)),dt}var kt=Z?Re.outerHTML:Re.innerHTML;return G&&(kt=L(kt,Pt," "),kt=L(kt,rt," ")),ot&&Qe?ot.createHTML(kt):kt},xe.setConfig=function(ae){Et(ae),pe=!0},xe.clearConfig=function(){vt=null,pe=!1},xe.isValidAttribute=function(ae,Ue,Re){vt||Et({});var nt=S(ae),ut=S(Ue);return Ht(nt,ut,Re)},xe.addHook=function(ae,Ue){"function"==typeof Ue&&(Ye[ae]=Ye[ae]||[],F(Ye[ae],Ue))},xe.removeHook=function(ae){Ye[ae]&&U(Ye[ae])},xe.removeHooks=function(ae){Ye[ae]&&(Ye[ae]=[])},xe.removeAllHooks=function(){Ye={}},xe}()}()},function(n,l){n.exports=o},function(n,l,a){"use strict";a.r(l);var d=a(1),u=a.n(d),c=a(0),t=a.n(c);function h(x){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(x)}function i(x,L){var H=Object.keys(x);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(x);L&&(K=K.filter(function(N){return Object.getOwnPropertyDescriptor(x,N).enumerable})),H.push.apply(H,K)}return H}function s(x){for(var L=1;L<arguments.length;L++){var H=null!=arguments[L]?arguments[L]:{};L%2?i(Object(H),!0).forEach(function(K){r(x,K,H[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(H)):i(Object(H)).forEach(function(K){Object.defineProperty(x,K,Object.getOwnPropertyDescriptor(H,K))})}return x}function r(x,L,H){return L in x?Object.defineProperty(x,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):x[L]=H,x}function f(x,L){for(var H=0;H<L.length;H++){var K=L[H];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(x,K.key,K)}}function g(x,L){return(g=Object.setPrototypeOf||function(H,K){return H.__proto__=K,H})(x,L)}function A(x){var L=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(H){return!1}}();return function(){var H,K=U(x);if(L){var N=U(this).constructor;H=Reflect.construct(K,arguments,N)}else H=K.apply(this,arguments);return w(this,H)}}function w(x,L){return!L||"object"!==h(L)&&"function"!=typeof L?function(H){if(void 0===H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}(x):L}
10function U(x){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(x)}var F=u.a.import("modules/clipboard"),y=u.a.import("delta"),S=function(x){!function(_,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(m&&m.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),m&&g(_,m)}(R,x);var L,H,K,N=A(R);function R(_,m){var b;return function(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}(this,R),(b=N.call(this,_,m)).allowed=m.allowed,b.keepSelection=m.keepSelection,b.substituteBlockElements=m.substituteBlockElements,b.magicPasteLinks=m.magicPasteLinks,b.hooks=m.hooks,b}return L=R,(H=[{key:"onPaste",value:function(_){var m=this;_.preventDefault();var b,C,D,I,P,B=this.quill.getSelection();_.clipboardData&&_.clipboardData.getData||!window.clipboardData||!window.clipboardData.getData?(b=_.clipboardData.getData("text/plain"),C=_.clipboardData.getData("text/html"),D=null===(I=_.clipboardData)||void 0===I||null===(P=I.items)||void 0===P?void 0:P[0]):b=window.clipboardData.getData("Text");var p,Y,j,ee,ne,se,le,he,ve,z=(new y).retain(B.index).delete(B.length),te=this.getDOMPurifyOptions(),me=b;if(C)"function"==typeof(null===(p=this.hooks)||void 0===p?void 0:p.beforeSanitizeElements)&&t.a.addHook("beforeSanitizeElements",this.hooks.beforeSanitizeElements),"function"==typeof(null===(Y=this.hooks)||void 0===Y?void 0:Y.uponSanitizeElement)&&t.a.addHook("uponSanitizeElement",this.hooks.uponSanitizeElement),"function"==typeof(null===(j=this.hooks)||void 0===j?void 0:j.afterSanitizeElements)&&t.a.addHook("afterSanitizeElements",this.hooks.afterSanitizeElements),"function"==typeof(null===(ee=this.hooks)||void 0===ee?void 0:ee.beforeSanitizeAttributes)&&t.a.addHook("beforeSanitizeAttributes",this.hooks.beforeSanitizeAttributes),"function"==typeof(null===(ne=this.hooks)||void 0===ne?void 0:ne.uponSanitizeAttribute)&&t.a.addHook("uponSanitizeAttribute",this.hooks.uponSanitizeAttribute),"function"==typeof(null===(se=this.hooks)||void 0===se?void 0:se.afterSanitizeAttributes)&&t.a.addHook("afterSanitizeAttributes",this.hooks.afterSanitizeAttributes),"function"==typeof(null===(le=this.hooks)||void 0===le?void 0:le.beforeSanitizeShadowDOM)&&t.a.addHook("beforeSanitizeShadowDOM",this.hooks.beforeSanitizeShadowDOM),"function"==typeof(null===(he=this.hooks)||void 0===he?void 0:he.uponSanitizeShadowNode)&&t.a.addHook("uponSanitizeShadowNode",this.hooks.uponSanitizeShadowNode),"function"==typeof(null===(ve=this.hooks)||void 0===ve?void 0:ve.afterSanitizeShadowDOM)&&t.a.addHook("afterSanitizeShadowDOM",this.hooks.afterSanitizeShadowDOM),me=!1!==this.substituteBlockElements?(C=this.substitute(C,te)).innerHTML:t.a.sanitize(C,te),z=z.concat(this.convert(me));else if(te.ALLOWED_TAGS.includes("a")&&this.isURL(b)&&B.length>0&&this.magicPasteLinks)me=this.quill.getText(B.index,B.length),z=z.insert(me,{link:b});else if(te.ALLOWED_TAGS.includes("img")&&D&&"file"===D.kind&&D.type.match(/^image\//i)){var ce=D.getAsFile(),we=new FileReader;we.onload=function(Fe){m.quill.insertEmbed(B.index,"image",Fe.target.result),m.keepSelection||m.quill.setSelection(B.index+1)},we.readAsDataURL(ce)}else z=z.insert(me);this.quill.updateContents(z,u.a.sources.USER),z=this.convert(me),this.keepSelection?this.quill.setSelection(B.index,z.length(),u.a.sources.SILENT):this.quill.setSelection(B.index+z.length(),u.a.sources.SILENT),this.quill.container.scrollIntoView(),t.a.removeAllHooks()}},{key:"getDOMPurifyOptions",value:function(){var _,m,b={};if((null===(_=this.allowed)||void 0===_?void 0:_.tags)&&(b.ALLOWED_TAGS=this.allowed.tags),(null===(m=this.allowed)||void 0===m?void 0:m.attributes)&&(b.ALLOWED_ATTR=this.allowed.attributes),void 0===b.ALLOWED_TAGS||void 0===b.ALLOWED_ATTR){var C,D=!1;void 0===b.ALLOWED_TAGS&&(D=!0,b.ALLOWED_TAGS=["p","br","span"]);var I=!1;void 0===b.ALLOWED_ATTR&&(I=!0,b.ALLOWED_ATTR=["class"]);var P=this.quill.getModule("toolbar");
10null==P||null===(C=P.controls)||void 0===C||C.forEach(function(B){switch(B[0]){case"bold":D&&(b.ALLOWED_TAGS.push("b"),b.ALLOWED_TAGS.push("strong"));break;case"italic":D&&b.ALLOWED_TAGS.push("i");break;case"underline":D&&b.ALLOWED_TAGS.push("u");break;case"strike":D&&b.ALLOWED_TAGS.push("s");break;case"color":case"background":I&&b.ALLOWED_ATTR.push("style");break;case"script":D&&("super"===B[1].value?b.ALLOWED_TAGS.push("sup"):"sub"===B[1].value&&b.ALLOWED_TAGS.push("sub"));break;case"header":if(D){var p=function(Y){"1"===Y?b.ALLOWED_TAGS.push("h1"):"2"===Y?b.ALLOWED_TAGS.push("h2"):"3"===Y?b.ALLOWED_TAGS.push("h3"):"4"===Y?b.ALLOWED_TAGS.push("h4"):"5"===Y?b.ALLOWED_TAGS.push("h5"):"6"===Y&&b.ALLOWED_TAGS.push("h6")};B[1].value?p(B[1].value):B[1].options&&B[1].options.length&&[].forEach.call(B[1].options,function(Y){Y.value&&p(Y.value)})}break;case"code-block":D&&b.ALLOWED_TAGS.push("pre"),I&&b.ALLOWED_ATTR.push("spellcheck");break;case"list":D&&("ordered"===B[1].value?b.ALLOWED_TAGS.push("ol"):"bullet"===B[1].value&&b.ALLOWED_TAGS.push("ul"),b.ALLOWED_TAGS.push("li"));break;case"link":D&&b.ALLOWED_TAGS.push("a"),I&&(b.ALLOWED_ATTR.push("href"),b.ALLOWED_ATTR.push("target"),b.ALLOWED_ATTR.push("rel"));break;case"image":D&&b.ALLOWED_TAGS.push("img"),I&&(b.ALLOWED_ATTR.push("src"),b.ALLOWED_ATTR.push("title"),b.ALLOWED_ATTR.push("alt"));break;case"video":D&&b.ALLOWED_TAGS.push("iframe"),I&&(b.ALLOWED_ATTR.push("frameborder"),b.ALLOWED_ATTR.push("allowfullscreen"),b.ALLOWED_ATTR.push("src"));break;case"blockquote":D&&b.ALLOWED_TAGS.push(B[0])}})}return b}},{key:"substitute",value:function(_,m){var b,C=["h1","h2","h3","h4","h5","h6"],D=["p","div","section","article","fieldset","address","aside","blockquote","canvas","dl","figcaption","figure","footer","form","header","main","nav","noscript","ol","pre","table","tfoot","ul","video"],I=["li","dt","dd","hr"];t.a.addHook("uponSanitizeElement",function(Y,j,ee){for(var ne=0;!b&&ne<3;)m.ALLOWED_TAGS.includes(D[ne])&&(b=D[ne]),++ne;if(b&&Y.tagName&&!m.ALLOWED_TAGS.includes(Y.tagName.toLowerCase())){var se=Y.tagName.toLowerCase();C.includes(se)?Y.innerHTML="<".concat(b,"><b>").concat(Y.innerHTML,"</b></").concat(b,">"):D.includes(se)?Y.innerHTML="<".concat(b,">").concat(Y.innerHTML,"</").concat(b,">"):I.includes(se)&&(Y.innerHTML="".concat(Y.innerHTML,"<br>"))}}),_=t.a.sanitize(_,s(s({},m),{RETURN_DOM:!0,WHOLE_DOCUMENT:!1})),t.a.removeAllHooks();var P,B=0,p=document.createElement("body");return function Y(j,ee){for(ee(j,B),j=B<=1?j.firstChild:void 0;j;)++B,Y(j,ee),j=j.nextSibling;--B}(_,function(Y,j){if(1===j)if(Y.tagName&&D.includes(Y.tagName.toLowerCase())){P&&(P=void 0);var ee=document.createElement(Y.tagName.toLowerCase());ee.innerHTML=Y.innerHTML,p.appendChild(ee)}else if(void 0===P&&(P=document.createElement(b),p.appendChild(P)),Y.tagName){var ne=document.createElement(Y.tagName.toLowerCase());Y.innerHTML&&(ne.innerHTML=Y.innerHTML),P.appendChild(ne)}else{var se=document.createTextNode(Y.textContent);P.appendChild(se)}}),p}},{key:"isURL",value:function(_){return!!/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+\x2D?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+\x2D?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2F
10FF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i.test(_)}}])&&f(L.prototype,H),K&&f(L,K),R}(F);u.a.register("modules/clipboard",S,!0),l.default=S}]))},90465:O=>{"use strict";O.exports=function(e,o){if(o=o.split(":")[0],!(e=+e))return!1;switch(o){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},66219:(O,v,e)=>{"use strict";e.r(v),e.d(v,{default:()=>C});var o=function(){if("undefined"!=typeof Map)return Map;function D(I,P){var B=-1;return I.some(function(p,Y){return p[0]===P&&(B=Y,!0)}),B}return function(){function I(){this.__entries__=[]}return Object.defineProperty(I.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),I.prototype.get=function(P){var B=D(this.__entries__,P),p=this.__entries__[B];return p&&p[1]},I.prototype.set=function(P,B){var p=D(this.__entries__,P);~p?this.__entries__[p][1]=B:this.__entries__.push([P,B])},I.prototype.delete=function(P){var B=this.__entries__,p=D(B,P);~p&&B.splice(p,1)},I.prototype.has=function(P){return!!~D(this.__entries__,P)},I.prototype.clear=function(){this.__entries__.splice(0)},I.prototype.forEach=function(P,B){void 0===B&&(B=null);for(var p=0,Y=this.__entries__;p<Y.length;p++){var j=Y[p];P.call(B,j[1],j[0])}},I}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,l="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(l):function(D){return setTimeout(function(){return D(Date.now())},1e3/60)};var t=["top","right","bottom","left","width","height","size","weight"],h="undefined"!=typeof MutationObserver,i=function(){function D(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(D,I){var P=!1,B=!1,p=0;function Y(){P&&(P=!1,D()),B&&ee()}function j(){a(Y)}function ee(){var ne=Date.now();if(P){if(ne-p<2)return;B=!0}else P=!0,B=!1,setTimeout(j,I);p=ne}return ee}(this.refresh.bind(this),20)}return D.prototype.addObserver=function(I){~this.observers_.indexOf(I)||this.observers_.push(I),this.connected_||this.connect_()},D.prototype.removeObserver=function(I){var P=this.observers_,B=P.indexOf(I);~B&&P.splice(B,1),!P.length&&this.connected_&&this.disconnect_()},D.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},D.prototype.updateObservers_=function(){var I=this.observers_.filter(function(P){return P.gatherActive(),P.hasActive()});return I.forEach(function(P){return P.broadcastActive()}),I.length>0},D.prototype.connect_=function(){!n||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},D.prototype.disconnect_=function(){!n||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},D.prototype.onTransitionEnd_=function(I){var P=I.propertyName,B=void 0===P?"":P;t.some(function(Y){return!!~B.indexOf(Y)})&&this.refresh()},D.getInstance=function(){return this.instance_||(this.instance_=new D),this.instance_},D.instance_=null,D}(),s=function(D,I){for(var P=0,B=Object.keys(I);P<B.length;P++){var p=B[P];
10Object.defineProperty(D,p,{value:I[p],enumerable:!1,writable:!1,configurable:!0})}return D},r=function(D){return D&&D.ownerDocument&&D.ownerDocument.defaultView||l},f=H(0,0,0,0);function g(D){return parseFloat(D)||0}function A(D){for(var I=[],P=1;P<arguments.length;P++)I[P-1]=arguments[P];return I.reduce(function(B,p){return B+g(D["border-"+p+"-width"])},0)}function F(D){var I=D.clientWidth,P=D.clientHeight;if(!I&&!P)return f;var B=r(D).getComputedStyle(D),p=function(D){for(var P={},B=0,p=["top","right","bottom","left"];B<p.length;B++){var Y=p[B],j=D["padding-"+Y];P[Y]=g(j)}return P}(B),Y=p.left+p.right,j=p.top+p.bottom,ee=g(B.width),ne=g(B.height);if("border-box"===B.boxSizing&&(Math.round(ee+Y)!==I&&(ee-=A(B,"left","right")+Y),Math.round(ne+j)!==P&&(ne-=A(B,"top","bottom")+j)),!function(D){return D===r(D).document.documentElement}(D)){var se=Math.round(ee+Y)-I,le=Math.round(ne+j)-P;1!==Math.abs(se)&&(ee-=se),1!==Math.abs(le)&&(ne-=le)}return H(p.left,p.top,ee,ne)}var y="undefined"!=typeof SVGGraphicsElement?function(D){return D instanceof r(D).SVGGraphicsElement}:function(D){return D instanceof r(D).SVGElement&&"function"==typeof D.getBBox};function x(D){return n?y(D)?function(D){var I=D.getBBox();return H(0,0,I.width,I.height)}(D):F(D):f}function H(D,I,P,B){return{x:D,y:I,width:P,height:B}}var K=function(){function D(I){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=H(0,0,0,0),this.target=I}return D.prototype.isActive=function(){var I=x(this.target);return this.contentRect_=I,I.width!==this.broadcastWidth||I.height!==this.broadcastHeight},D.prototype.broadcastRect=function(){var I=this.contentRect_;return this.broadcastWidth=I.width,this.broadcastHeight=I.height,I},D}(),N=function(I,P){var B=function(D){var I=D.x,P=D.y,B=D.width,p=D.height,Y="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,j=Object.create(Y.prototype);return s(j,{x:I,y:P,width:B,height:p,top:P,right:I+B,bottom:p+P,left:I}),j}(P);s(this,{target:I,contentRect:B})},R=function(){function D(I,P,B){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof I)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=I,this.controller_=P,this.callbackCtx_=B}return D.prototype.observe=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(I instanceof r(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(I)||(P.set(I,new K(I)),this.controller_.addObserver(this),this.controller_.refresh())}},D.prototype.unobserve=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(I instanceof r(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;!P.has(I)||(P.delete(I),P.size||this.controller_.removeObserver(this))}},D.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},D.prototype.gatherActive=function(){var I=this;this.clearActive(),this.observations_.forEach(function(P){P.isActive()&&I.activeObservations_.push(P)})},D.prototype.broadcastActive=function(){if(this.hasActive()){var I=this.callbackCtx_,P=this.activeObservations_.map(function(B){return new N(B.target,B.broadcastRect())});this.callback_.call(I,P,I),this.clearActive()}},D.prototype.clearActive=function(){this.activeObservations_.splice(0)},D.prototype.hasActive=function(){return this.activeObservations_.length>0},D}(),_="undefined"!=typeof WeakMap?new WeakMap:new o,m=function D(I){if(!(this instanceof D))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var P=i.getInstance(),B=new R(I,P,this);_.set(this,B)};["observe","unobserve","disconnect"].forEach(function(D){m.prototype[D]=function(){var I;return(I=_.get(this))[D].apply(I,arguments)}});const C=void 0!==l.ResizeObserver?l.ResizeObserver:m},49962:(O,v,e)=>{var o=e(58175),n=e(2518),l=e(32313),a=e(12011)("socket.io-client");O.exports=v=u;var d=v.managers={};function u(c,t){"object"==typeof c&&(t=c,c=void 0),t=t||{};var A,h=o(c),i=h.source,s=h.id,r=h.path,f=d[s]&&r in d[s].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(a("ignoring socket cache for %s",i),A=l(i,t)):(d[s]||(a("new io instance for %s",i),d[s]=l(i,t)),A=d[s]),h.query&&!t.query&&(t.query=h.query
vendor: 11,905 bytes, line 10
10),A.socket(h.path,t)}v.protocol=n.protocol,v.connect=u,v.Manager=e(32313),v.Socket=e(88270)},32313:(O,v,e)=>{var o=e(98338),n=e(88270),l=e(19179),a=e(2518),d=e(63647),u=e(59782),c=e(12011)("socket.io-client:manager"),t=e(37736),h=e(7591),i=Object.prototype.hasOwnProperty;function s(r,f){if(!(this instanceof s))return new s(r,f);r&&"object"==typeof r&&(f=r,r=void 0),(f=f||{}).path=f.path||"/socket.io",this.nsps={},this.subs=[],this.opts=f,this.reconnection(!1!==f.reconnection),this.reconnectionAttempts(f.reconnectionAttempts||1/0),this.reconnectionDelay(f.reconnectionDelay||1e3),this.reconnectionDelayMax(f.reconnectionDelayMax||5e3),this.randomizationFactor(f.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==f.timeout?2e4:f.timeout),this.readyState="closed",this.uri=r,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var g=f.parser||a;this.encoder=new g.Encoder,this.decoder=new g.Decoder,this.autoConnect=!1!==f.autoConnect,this.autoConnect&&this.open()}O.exports=s,s.prototype.emitAll=function(){for(var r in this.emit.apply(this,arguments),this.nsps)i.call(this.nsps,r)&&this.nsps[r].emit.apply(this.nsps[r],arguments)},s.prototype.updateSocketIds=function(){for(var r in this.nsps)i.call(this.nsps,r)&&(this.nsps[r].id=this.generateId(r))},s.prototype.generateId=function(r){return("/"===r?"":r+"#")+this.engine.id},l(s.prototype),s.prototype.reconnection=function(r){return arguments.length?(this._reconnection=!!r,this):this._reconnection},s.prototype.reconnectionAttempts=function(r){return arguments.length?(this._reconnectionAttempts=r,this):this._reconnectionAttempts},s.prototype.reconnectionDelay=function(r){return arguments.length?(this._reconnectionDelay=r,this.backoff&&this.backoff.setMin(r),this):this._reconnectionDelay},s.prototype.randomizationFactor=function(r){return arguments.length?(this._randomizationFactor=r,this.backoff&&this.backoff.setJitter(r),this):this._randomizationFactor},s.prototype.reconnectionDelayMax=function(r){return arguments.length?(this._reconnectionDelayMax=r,this.backoff&&this.backoff.setMax(r),this):this._reconnectionDelayMax},s.prototype.timeout=function(r){return arguments.length?(this._timeout=r,this):this._timeout},s.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},s.prototype.open=s.prototype.connect=function(r,f){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=o(this.uri,this.opts);var g=this.engine,A=this;this.readyState="opening",this.skipReconnect=!1;var w=d(g,"open",function(){A.onopen(),r&&r()}),U=d(g,"error",function(S){if(c("connect_error"),A.cleanup(),A.readyState="closed",A.emitAll("connect_error",S),r){var x=new Error("Connection error");x.data=S,r(x)}else A.maybeReconnectOnOpen()});if(!1!==this._timeout){var F=this._timeout;c("connect attempt will timeout after %d",F);var y=setTimeout(function(){c("connect attempt timed out after %d",F),w.destroy(),g.close(),g.emit("error","timeout"),A.emitAll("connect_timeout",F)},F);this.subs.push({destroy:function(){clearTimeout(y)}})}return this.subs.push(w),this.subs.push(U),this},s.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var r=this.engine;this.subs.push(d(r,"data",u(this,"ondata"))),this.subs.push(d(r,"ping",u(this,"onping"))),this.subs.push(d(r,"pong",u(this,"onpong"))),this.subs.push(d(r,"error",u(this,"onerror"))),this.subs.push(d(r,"close",u(this,"onclose"))),this.subs.push(d(this.decoder,"decoded",u(this,"ondecoded")))},s.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},s.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},s.prototype.ondata=function(r){this.decoder.add(r)},s.prototype.ondecoded=function(r){this.emit("packet",r)},s.prototype.onerror=function(r){c("error",r),this.emitAll("error",r)},s.prototype.socket=function(r,f){var g=this.nsps[r];if(!g){g=new n(this,r,f),this.nsps[r]=g;var A=this;g.on("connecting",w),g.on("connect",function(){g.id=A.generateId(r)}),this.autoConnect&&w()}function w(){~t(A.connecting,g)||A.connecting.push(g)}return g},s.prototype.destroy=function(r){var f=t(this.connecting,r);~f&&this.connecting.splice(f,1),!this.connecting.length&&this.close()},s.prototype.packet=function(r){c("writing packet %j",r);var f=this;r.query&&0===r.type&&(r.nsp+="?"+r.query),f.encoding?f.packetBuffer.push(r):(f.encoding=!0,this.encoder.encode(r,function(g){for(var A=0;A<g.length;A++)f.engine.write(g[A],r.options);f.encoding=!1,f.processPacketQueue()}))},s.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var r=this.packetBuffer.shift();this.packet(r)}},s.prototype.cleanup=function(){c("cleanup");for(var r=this.subs.length,f=0;f<r;f++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},s.prototype.close=s.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},s.prototype.onclose=function(r){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",r),this._reconnection&&!this.skipReconnect&&this.reconnect()},s.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var r=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var f=this.backoff.duration();c("will wait %dms before reconnect attempt",f),this.reconnecting=!0;var g=setTimeout(function(){r.skipReconnect||(c("attempting reconnect"),r.emitAll("reconnect_attempt",r.backoff.attempts),r.emitAll("reconnecting",r.backoff.attempts),!r.skipReconnect&&r.open(function(A){A?(c("reconnect attempt error"),r.reconnecting=!1,r.reconnect(),r.emitAll("reconnect_error",A.data)):(c("reconnect success"),r.onreconnect())}))},f);this.subs.push({destroy:function(){clearTimeout(g)}})}},s.prototype.onreconnect=function(){var r=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",r)}},63647:O=>{O.exports=function(e,o,n){return e.on(o,n),{destroy:function(){e.removeListener(o,n)}}}},88270:(O,v,e)=>{var o=e(2518),n=e(19179),l=e(54768),a=e(63647),d=e(59782),u=e(12011)("socket.io-client:socket"),c=e(39603),t=e(35133);O.exports=s;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},i=n.prototype.emit;function s(r,f,g){this.io=r,this.nsp=f,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},g&&g.query&&(this.query=g.query),this.io.autoConnect&&this.open()}n(s.prototype),s.prototype.subEvents=function(){if(!this.subs){var r=this.io;this.subs=[a(r,"open",d(this,"onopen")),a(r,"packet",d(this,"onpacket")),a(r,"close",d(this,"onclose"))]}},s.prototype.open=s.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},s.prototype.send=function(){var r=l(arguments);return r.unshift("message"),this.emit.apply(this,r),this},s.prototype.emit=function(r){if(h.hasOwnProperty(r))return i.apply(this,arguments),this;var f=l(arguments),g={type:(void 0!==this.flags.binary?this.flags.binary:t(f))?o.BINARY_EVENT:o.EVENT,data:f,options:{}};return g.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof f[f.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=f.pop(),g.id=this.ids++),this.connected?this.packet(g):this.sendBuffer.push(g),this.flags={},this},s.prototype.packet=function(r){r.nsp=this.nsp,this.io.packet(r)},s.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var r="object"==typeof this.query?c.encode(this.query):this.query;u("sending connect packet with query %s",r),this.packet({type:o.CONNECT,query:r})}else this.packet({type:o.CONNECT})},s.prototype.onclose=function(r){u("close (%s)",r),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",r)},s.prototype.onpacket=function(r){var f=r.nsp===this.nsp,g=r.type===o.ERROR&&"/"===r.nsp;if(f||g)switch(r.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(r);break;case o.ACK:case o.BINARY_ACK:this.onack(r);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",r.data)}},s.prototype.onevent=function(r){var f=r.data||[];u("emitting event %j",f),null!=r.id&&(u("attaching ack callback to event"),f.push(this.ack(r.id))),this.connected?i.apply(this,f):this.receiveBuffer.push(f)},s.prototype.ack=function(r){var f=this,g=!1;return function(){if(!g){g=!0;var A=l(arguments);u("sending ack %j",A),f.packet({type:t(A)?o.BINARY_ACK:o.ACK,id:r,data:A})}}},s.prototype.onack=function(r){var f=this.acks[r.id];"function"==typeof f?(u("calling ack %s with %j",r.id,r.data),f.apply(this,r.data),delete this.acks[r.id]):u("bad ack %s",r.id)},s.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},s.prototype.emitBuffered=function(){var r;for(r=0;r<this.receiveBuffer.length;r++)i.apply(this,this.receiveBuffer[r]);for(this.receiveBuffer=[],r=0;r<this.sendBuffer.length;r++)this.packet(this.sendBuffer[r]);this.sendBuffer=[]},s.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},s.prototype.destroy=function(){if(this.subs){for(var r=0;r<this.subs.length;r++)this.subs[r].destroy();this.subs=null}this.io.destroy(this)},s.prototype.close=s.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},s.prototype.compress=function(r){return this.flags.compress=r,this},s.prototype.binary=function(r){return this.flags.binary=r,this}},58175:(O,v,e)=>{var o=e(44171),n=e(12011)("socket.io-client:url");O.exports=function(a,d){var u=a;d=d||"undefined"!=typeof location&&location,null==a&&(a=d.protocol+"//"+d.host),"string"==typeof a&&("/"===a.charAt(0)&&(a="/"===a.charAt(1)?d.protocol+a:d.host+a),/^(https?|wss?):\/\//.test(a)||(n("protocol-less url %s",a),a=void 0!==d?d.protocol+"//"+a:"https://"+a),n("parse %s",a),u=o(a)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";var t=-1!==u.host.indexOf(":")?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+t+":"+u.port,u.href=u.protocol+"://"+t+(d&&d.port===u.port?"":":"+u.port),u}},19179:O=>{function v(o){if(o)return function(o){for(var n in v.prototype)o[n]=v.prototype[n];return o}(o)}O.exports=v,v.prototype.on=v.prototype.addEventListener=function(o,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(n),this},v.prototype.once=function(o,n){function l(){this.off(o,l),n.apply(this,arguments)}return l.fn=n,this.on(o,l),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(o,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+o];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+o],this;for(var a,d=0;d<l.length;d++)if((a=l[d])===n||a.fn===n){l.splice(d,1);break}return this},v.prototype.emit=function(o){this._callbacks=this._callbacks||{};
10var n=[].slice.call(arguments,1),l=this._callbacks["$"+o];if(l)for(var a=0,d=(l=l.slice(0)).length;a<d;++a)l[a].apply(this,n);return this},v.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]},v.prototype.hasListeners=function(o){return!!this.listeners(o).length}},12011:(O,v,e)=>{function d(){var c;try{c=v.storage.debug}catch(t){}return!c&&"undefined"!=typeof process&&"env"in process&&(c=process.env.DEBUG),c}(v=O.exports=e(27375)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},v.formatArgs=function(c){var t=this.useColors;if(c[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+c[0]+(t?"%c ":" ")+"+"+v.humanize(this.diff),t){var h="color: "+this.color;c.splice(1,0,h,"color: inherit");var i=0,s=0;c[0].replace(/%[a-zA-Z%]/g,function(r){"%%"!==r&&(i++,"%c"===r&&(s=i))}),c.splice(s,0,h)}},v.save=function(c){try{null==c?v.storage.removeItem("debug"):v.storage.debug=c}catch(t){}},v.load=d,v.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},v.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(c){}}(),v.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],v.formatters.j=function(c){try{return JSON.stringify(c)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},v.enable(d())},27375:(O,v,e)=>{function n(t){var h;function i(){if(i.enabled){var s=i,r=+new Date,f=r-(h||r);s.diff=f,s.prev=h,s.curr=r,h=r;for(var g=new Array(arguments.length),A=0;A<g.length;A++)g[A]=arguments[A];g[0]=v.coerce(g[0]),"string"!=typeof g[0]&&g.unshift("%O");var w=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(F,y){if("%%"===F)return F;w++;var S=v.formatters[y];if("function"==typeof S){var x=g[w];F=S.call(s,x),g.splice(w,1),w--}return F}),v.formatArgs.call(s,g);var U=i.log||v.log||console.log.bind(console);U.apply(s,g)}}return i.namespace=t,i.enabled=v.enabled(t),i.useColors=v.useColors(),i.color=function(t){var i,h=0;for(i in t)h=(h<<5)-h+t.charCodeAt(i),h|=0;return v.colors[Math.abs(h)%v.colors.length]}(t),i.destroy=l,"function"==typeof v.init&&v.init(i),v.instances.push(i),i}function l(){var t=v.instances.indexOf(this);return-1!==t&&(v.instances.splice(t,1),!0)}(v=O.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},v.disable=function(){v.enable("")},v.enable=function(t){v.save(t),v.names=[],v.skips=[];var h,i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(h=0;h<s;h++)!i[h]||("-"===(t=i[h].replace(/\*/g,".*?"))[0]?v.skips.push(new RegExp("^"+t.substr(1)+"$")):v.names.push(new RegExp("^"+t+"$")));for(h=0;h<v.instances.length;h++){var r=v.instances[h];r.enabled=v.enabled(r.namespace)}},v.enabled=function(t){if("*"===t[t.length-1])return!0;var h,i;for(h=0,i=v.skips.length;h<i;h++)if(v.skips[h].test(t))return!1;for(h=0,i=v.names.length;h<i;h++)if(v.names[h].test(t))return!0;return!1},v.humanize=e(73924),v.instances=[],v.names=[],v.skips=[],v.formatters={}},73924:O=>{var v=1e3,e=60*v,o=60*e,n=24*o,l=365.25*n;function c(t,h,i){if(!(t<h))return t<1.5*h?Math.floor(t/h)+" "+i:Math.ceil(t/h)+" "+i+"s"}O.exports=function(t,h){h=h||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(h){var i=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*l;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*e;case"seconds":case"second":case"secs":case"sec":case"s":return i*v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return h.long?function(t){return c(t,n,"day")||c(t,o,"hour")||c(t,e,"minute")||c(t,v,"second")||t+" ms"}(t):function(t){return t>=n?Math.round(t/n)+"d":t>=o?Math.round(t/o)+"h":t>=e?Math.round(t/e)+"m":t>=v?Math.round(t/v)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},80814:(O,v,e)=>{var o=e(75105),n=e(24297),l=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===l.call(Blob),d="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===l.call(File);function u(t,h){if(!t)return t;if(n(t)){var i={_placeholder:!0,num:h.length};return h.push(t),i}if(o(t)){for(var s=new Array(t.length),r=0;r<t.length;r++)s[r]=u(t[r],h);return s}if("object"==typeof t&&!(t instanceof Date)){s={};for(var f in t)s[f]=u(t[f],h);return s}return t}function c(t,h){if(!t)return t;if(t&&t._placeholder)return h[t.num];
10if(o(t))for(var i=0;i<t.length;i++)t[i]=c(t[i],h);else if("object"==typeof t)for(var s in t)t[s]=c(t[s],h);return t}v.deconstructPacket=function(t){var h=[],i=t.data,s=t;return s.data=u(i,h),s.attachments=h.length,{packet:s,buffers:h}},v.reconstructPacket=function(t,h){return t.data=c(t.data,h),t.attachments=void 0,t},v.removeBlobs=function(t,h){var s=0,r=t;(function i(f,g,A){if(!f)return f;if(a&&f instanceof Blob||d&&f instanceof File){s++;var w=new FileReader;w.onload=function(){A?A[g]=this.result:r=this.result,--s||h(r)},w.readAsArrayBuffer(f)}else if(o(f))for(var U=0;U<f.length;U++)i(f[U],U,f);else if("object"==typeof f&&!n(f))for(var F in f)i(f[F],F,f)})(r),s||h(r)}},2518:(O,v,e)=>{var o=e(15034)("socket.io-parser"),n=e(65899),l=e(80814),a=e(75105),d=e(24297);function u(){}v.protocol=4,v.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],v.CONNECT=0,v.DISCONNECT=1,v.EVENT=2,v.ACK=3,v.ERROR=4,v.BINARY_EVENT=5,v.BINARY_ACK=6,v.Encoder=u,v.Decoder=s;var c=v.ERROR+'"encode error"';function t(w){var U=""+w.type;if((v.BINARY_EVENT===w.type||v.BINARY_ACK===w.type)&&(U+=w.attachments+"-"),w.nsp&&"/"!==w.nsp&&(U+=w.nsp+","),null!=w.id&&(U+=w.id),null!=w.data){var F=function(w){try{return JSON.stringify(w)}catch(U){return!1}}(w.data);if(!1===F)return c;U+=F}return o("encoded %j as %s",w,U),U}function s(){this.reconstructor=null}function g(w){this.reconPack=w,this.buffers=[]}function A(w){return{type:v.ERROR,data:"parser error: "+w}}u.prototype.encode=function(w,U){(o("encoding packet %j",w),v.BINARY_EVENT===w.type||v.BINARY_ACK===w.type)?function(w,U){function F(y){var S=l.deconstructPacket(y),x=t(S.packet),L=S.buffers;L.unshift(x),U(L)}l.removeBlobs(w,F)}(w,U):U([t(w)])},n(s.prototype),s.prototype.add=function(w){var U;if("string"==typeof w)U=function(w){var U=0,F={type:Number(w.charAt(0))};if(null==v.types[F.type])return A("unknown packet type "+F.type);if(v.BINARY_EVENT===F.type||v.BINARY_ACK===F.type){for(var y=U+1;"-"!==w.charAt(++U)&&U!=w.length;);var S=w.substring(y,U);if(S!=Number(S)||"-"!==w.charAt(U))throw new Error("Illegal attachments");F.attachments=Number(S)}if("/"===w.charAt(U+1)){for(y=U+1;++U;){if(","===(x=w.charAt(U))||U===w.length)break}F.nsp=w.substring(y,U)}else F.nsp="/";var L=w.charAt(U+1);if(""!==L&&Number(L)==L){for(y=U+1;++U;){var x;if(null==(x=w.charAt(U))||Number(x)!=x){--U;break}if(U===w.length)break}F.id=Number(w.substring(y,U+1))}if(w.charAt(++U)){var H=function(w){try{return JSON.parse(w)}catch(U){return!1}}(w.substr(U));if(!(!1!==H&&(F.type===v.ERROR||a(H))))return A("invalid payload");F.data=H}return o("decoded %s as %j",w,F),F}(w),v.BINARY_EVENT===U.type||v.BINARY_ACK===U.type?(this.reconstructor=new g(U),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",U)):this.emit("decoded",U);else{if(!d(w)&&!w.base64)throw new Error("Unknown type: "+w);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(U=this.reconstructor.takeBinaryData(w))&&(this.reconstructor=null,this.emit("decoded",U))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},g.prototype.takeBinaryData=function(w){if(this.buffers.push(w),this.buffers.length===this.reconPack.attachments){var U=l.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),U}return null},g.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},24297:O=>{O.exports=function(l){return v&&Buffer.isBuffer(l)||e&&(l instanceof ArrayBuffer||function(l){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l.buffer instanceof ArrayBuffer}(l))};var v="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,e="function"==typeof ArrayBuffer},15034:(O,v,e)=>{function d(){var c;try{c=v.storage.debug}catch(t){}return!c&&"undefined"!=typeof process&&"env"in process&&(c=process.env.DEBUG),c}(v=O.exports=e(7538)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},v.formatArgs=function(c){var t=this.useColors;if(c[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+c[0]+(t?"%c ":" ")+"+"+v.humanize(this.diff),t){var h="color: "+this.color;c.splice(1,0,h,"color: inherit");var i=0,s=0;c[0].replace(/%[a-zA-Z%]/g,function(r){"%%"!==r&&(i++,"%c"===r&&(s=i))}),c.splice(s,0,h)}}
10,v.save=function(c){try{null==c?v.storage.removeItem("debug"):v.storage.debug=c}catch(t){}},v.load=d,v.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},v.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(c){}}(),v.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],v.formatters.j=function(c){try{return JSON.stringify(c)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},v.enable(d())},7538:(O,v,e)=>{function n(t){var h;function i(){if(i.enabled){var s=i,r=+new Date,f=r-(h||r);s.diff=f,s.prev=h,s.curr=r,h=r;for(var g=new Array(arguments.length),A=0;A<g.length;A++)g[A]=arguments[A];g[0]=v.coerce(g[0]),"string"!=typeof g[0]&&g.unshift("%O");var w=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(F,y){if("%%"===F)return F;w++;var S=v.formatters[y];if("function"==typeof S){var x=g[w];F=S.call(s,x),g.splice(w,1),w--}return F}),v.formatArgs.call(s,g);var U=i.log||v.log||console.log.bind(console);U.apply(s,g)}}return i.namespace=t,i.enabled=v.enabled(t),i.useColors=v.useColors(),i.color=function(t){var i,h=0;for(i in t)h=(h<<5)-h+t.charCodeAt(i),h|=0;return v.colors[Math.abs(h)%v.colors.length]}(t),i.destroy=l,"function"==typeof v.init&&v.init(i),v.instances.push(i),i}function l(){var t=v.instances.indexOf(this);return-1!==t&&(v.instances.splice(t,1),!0)}(v=O.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},v.disable=function(){v.enable("")},v.enable=function(t){v.save(t),v.names=[],v.skips=[];var h,i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(h=0;h<s;h++)!i[h]||("-"===(t=i[h].replace(/\*/g,".*?"))[0]?v.skips.push(new RegExp("^"+t.substr(1)+"$")):v.names.push(new RegExp("^"+t+"$")));for(h=0;h<v.instances.length;h++){var r=v.instances[h];r.enabled=v.enabled(r.namespace)}},v.enabled=function(t){if("*"===t[t.length-1])return!0;var h,i;for(h=0,i=v.skips.length;h<i;h++)if(v.skips[h].test(t))return!1;for(h=0,i=v.names.length;h<i;h++)if(v.names[h].test(t))return!0;return!1},v.humanize=e(26424),v.instances=[],v.names=[],v.skips=[],v.formatters={}},26424:O=>{var v=1e3,e=60*v,o=60*e,n=24*o,l=365.25*n;function c(t,h,i){if(!(t<h))return t<1.5*h?Math.floor(t/h)+" "+i:Math.ceil(t/h)+" "+i+"s"}O.exports=function(t,h){h=h||{};var i=typeof t;if("string"===i&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(h){var i=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*l;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*e;case"seconds":case"second":case"secs":case"sec":case"s":return i*v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return h.long?function(t){return c(t,n,"day")||c(t,o,"hour")||c(t,e,"minute")||c(t,v,"second")||t+" ms"}(t):function(t){return t>=n?Math.round(t/n)+"d":t>=o?Math.round(t/o)+"h":t>=e?Math.round(t/e)+"m":t>=v?Math.round(t/v)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},54768:O=>{O.exports=function(e,o){for(var n=[],l=(o=o||0)||0;l<e.length;l++)n[l-o]=e[l];return n}},57499:(O,v,e)=>{"use strict";e.r(v),e.d(v,{HttpStack:()=>Ee,Upload:()=>ye,canStoreURLs:()=>we,defaultOptions:()=>de,enableDebugLog:()=>y,isSupported:()=>st});var o=e(7480),n=e(2135),l=e.n(n);function a(J){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(J)}function d(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}function t(J,Q){return!Q||"object"!==a(Q)&&"function"!=typeof Q?function(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J):Q}function i(J){var Q="function"==typeof Map?new Map:void 0;return i=function(Z){if(null===Z||!function(J){return-1!==Function.toString.call(J).indexOf("[native code]")}(Z))return Z;if("function"!=typeof Z)throw new TypeError("Super expression must either be null or a function");if(void 0!==Q){if(Q.has(Z))return Q.get(Z);Q.set(Z,pe)}function pe(){return s(Z,arguments,A(this).constructor)}return pe.prototype=Object.create(Z.prototype,{constructor:{value:pe,enumerable:!1,writable:!0,configurable:!0}}),g(pe,Z)},i(J)}function s(J,Q,G){return(s=r()?Reflect.construct:function(pe,_e,ke){var We=[null];We.push.apply(We,_e);
10var Qe=new(Function.bind.apply(pe,We));return ke&&g(Qe,ke.prototype),Qe}).apply(null,arguments)}function r(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(J){return!1}}function g(J,Q){return(g=Object.setPrototypeOf||function(Z,pe){return Z.__proto__=pe,Z})(J,Q)}function A(J){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(J)}const U=function(J){!function(J,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Q&&g(J,Q)}(G,J);var Q=function(J){return function(){var G,Q=A(J);if(r()){var Z=A(this).constructor;G=Reflect.construct(Q,arguments,Z)}else G=Q.apply(this,arguments);return t(this,G)}}(G);function G(Z){var pe,_e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,We=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(d(this,G),(pe=Q.call(this,Z)).originalRequest=ke,pe.originalResponse=We,pe.causingError=_e,null!=_e&&(Z+=", caused by ".concat(_e.toString())),null!=ke){var Xe=ke.getHeader("X-Request-ID")||"n/a",Qe=ke.getMethod(),wt=ke.getURL(),Rt=We?We.getStatus():"n/a",Ct=We?We.getBody()||"":"n/a";Z+=", originated from request (method: ".concat(Qe,", url: ").concat(wt,", response code: ").concat(Rt,", response text: ").concat(Ct,", request id: ").concat(Xe,")")}return pe.message=Z,pe}return G}(i(Error));var F=!1;function y(){F=!0}function S(J){!F||console.log(J)}function L(J,Q){var G=Object.keys(J);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(J);Q&&(Z=Z.filter(function(pe){return Object.getOwnPropertyDescriptor(J,pe).enumerable})),G.push.apply(G,Z)}return G}function H(J){for(var Q=1;Q<arguments.length;Q++){var G=null!=arguments[Q]?arguments[Q]:{};Q%2?L(Object(G),!0).forEach(function(Z){K(J,Z,G[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(G)):L(Object(G)).forEach(function(Z){Object.defineProperty(J,Z,Object.getOwnPropertyDescriptor(G,Z))})}return J}function K(J,Q,G){return Q in J?Object.defineProperty(J,Q,{value:G,enumerable:!0,configurable:!0,writable:!0}):J[Q]=G,J}function R(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}var b=function(){function J(Q,G){(function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")})(this,J),"resume"in G&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=G,this._urlStorage=this.options.urlStorage,this.file=Q,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return function(J,Q,G){Q&&R(J.prototype,Q),G&&R(J,G)}(J,[{key:"findPreviousUploads",value:function(){var G=this;return this.options.fingerprint(this.file,this.options).then(function(Z){return G._urlStorage.findUploadsByFingerprint(Z)})}},{key:"resumeFromPreviousUpload",value:function(G){this.url=G.uploadUrl||null,this._parallelUploadUrls=G.parallelUploadUrls||null,this._urlStorageKey=G.urlStorageKey}},{key:"start",value:function(){var G=this,Z=this.file;if(Z)if(this.options.endpoint||this.options.uploadUrl){var pe=this.options.retryDelays;null==pe||"[object Array]"===Object.prototype.toString.call(pe)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach(function(_e){G.options[_e]&&G._emitError(new Error("tus: cannot use the ".concat(_e," option when parallelUploads is enabled")))}),this.options.fingerprint(Z,this.options).then(function(_e){return S(null==_e?"No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.":"Calculated fingerprint: ".concat(_e)),G._fingerprint=_e,G._source?G._source:G.options.fileReader.openFile(Z,G.options.chunkSize)}).then(function(_e){G._source=_e,G.options.parallelUploads>1||null!=G._parallelUploadUrls?G._startParallelUpload():G._startSingleUpload()}).catch(function(_e){G._emitError(_e)})):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var G=this,Z=this._size=this._source.size,pe=0;this._parallelUploads=[];var _e=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,ke=function(J,Q,G){for(var Z=Math.floor(J/Q),pe=[],_e=0;_e<Q;_e++)pe.push({start:Z*_e,end:Z*(_e+1)});return pe[Q-1].end=J,G&&pe.forEach(function(ke,We){ke.uploadUrl=G[We]||null}),pe}(this._source.size,_e,this._parallelUploadUrls);this._parallelUploadUrls=new Array(ke.length);var Xe,We=ke.map(function(Qe,wt){var Rt=0;return G._source.slice(Qe.start,Qe.end).then(function(Ct){var Dt=Ct.value;return new Promise(function(Nt,pt){var ft=H({},G.options,{uploadUrl:Qe.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:H({},G.options.headers,{"Upload-Concat":"partial"}),onSuccess:Nt,onError:pt,onProgress:function(vt){pe=pe-Rt+vt,Rt=vt,G._emitProgress(pe,Z)},_onUploadUrlAvailable:function(){G._parallelUploadUrls[wt]=It.url,G._parallelUploadUrls.filter(function(vt){return!!vt}).length===ke.length&&G._saveUploadInUrlStorage()}}),It=new J(Dt,ft);It.start(),G._parallelUploads.push(It)})})});Promise.all(We).then(function(){(Xe=G._openRequest("POST",G.options.endpoint)).setHeader("Upload-Concat","final;".concat(G._parallelUploadUrls.join(" ")));var Qe=C(G.options.metadata);return""!==Qe&&Xe.setHeader("Upload-Metadata",Qe),G._sendRequest(Xe,null)}).then(function(Qe){if(D(Qe.getStatus(),200)){var wt=Qe.getHeader("Location");null!=wt?(G.url=Y(G.options.endpoint,wt),S("Created upload at ".concat(G.url)),G._emitSuccess()):G._emitHttpError(Xe,Qe,"tus: invali
10d or missing Location header")}else G._emitHttpError(Xe,Qe,"tus: unexpected response while creating upload")}).catch(function(Qe){G._emitError(Qe)})}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?(S("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?(S("Resuming upload from provided URL: ".concat(this.options.url)),this.url=this.options.uploadUrl,void this._resumeUpload()):(S("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(G){var Z=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach(function(pe){pe.abort(G)}),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),G&&null!=this.url?J.terminate(this.url,this.options).then(function(){return Z._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(G,Z,pe,_e){this._emitError(new U(pe,_e,G,Z))}},{key:"_emitError",value:function(G){var Z=this;if(!this._aborted){if(null!=this.options.retryDelays)if(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),p(G,this._retryAttempt,this.options)){var _e=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){Z.start()},_e))}if("function"!=typeof this.options.onError)throw G;this.options.onError(G)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(G,Z){"function"==typeof this.options.onProgress&&this.options.onProgress(G,Z)}},{key:"_emitChunkComplete",value:function(G,Z,pe){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(G,Z,pe)}},{key:"_createUpload",value:function(){var G=this;if(this.options.endpoint){var Z=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?Z.setHeader("Upload-Defer-Length",1):Z.setHeader("Upload-Length",this._size);var _e,pe=C(this.options.metadata);""!==pe&&Z.setHeader("Upload-Metadata",pe),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,_e=this._addChunkToRequest(Z)):_e=this._sendRequest(Z,null),_e.then(function(ke){if(D(ke.getStatus(),200)){var We=ke.getHeader("Location");if(null!=We)return G.url=Y(G.options.endpoint,We),S("Created upload at ".concat(G.url)),"function"==typeof G.options._onUploadUrlAvailable&&G.options._onUploadUrlAvailable(),0===G._size?(G._emitSuccess(),void G._source.close()):(G._saveUploadInUrlStorage(),void(G.options.uploadDataDuringCreation?G._handleUploadResponse(Z,ke):(G._offset=0,G._performUpload())));G._emitHttpError(Z,ke,"tus: invalid or missing Location header")}else G._emitHttpError(Z,ke,"tus: unexpected response while creating upload")}).catch(function(ke){G._emitHttpError(Z,null,"tus: failed to create upload",ke)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var G=this,Z=this._openRequest("HEAD",this.url);this._sendRequest(Z,null).then(function(_e){var ke=_e.getStatus();if(!D(ke,200))return D(ke,400)&&G._removeFromUrlStorage(),423===ke?void G._emitHttpError(Z,_e,"tus: upload is currently locked; retry later"):G.options.endpoint?(G.url=null,void G._createUpload()):void G._emitHttpError(Z,_e,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var We=parseInt(_e.getHeader("Upload-Offset"),10);
10if(isNaN(We))G._emitHttpError(Z,_e,"tus: invalid or missing offset value");else{var Xe=parseInt(_e.getHeader("Upload-Length"),10);if(!isNaN(Xe)||G.options.uploadLengthDeferred)return"function"==typeof G.options._onUploadUrlAvailable&&G.options._onUploadUrlAvailable(),We===Xe?(G._emitProgress(Xe,Xe),void G._emitSuccess()):(G._offset=We,void G._performUpload());G._emitHttpError(Z,_e,"tus: invalid or missing length value")}}).catch(function(_e){G._emitHttpError(Z,null,"tus: failed to resume upload",_e)})}},{key:"_performUpload",value:function(){var Z,G=this;this._aborted||(this.options.overridePatchMethod?(Z=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):Z=this._openRequest("PATCH",this.url),Z.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(Z).then(function(_e){D(_e.getStatus(),200)?G._handleUploadResponse(Z,_e):G._emitHttpError(Z,_e,"tus: unexpected response while uploading chunk")}).catch(function(_e){G._aborted||G._emitHttpError(Z,null,"tus: failed to upload chunk at offset ".concat(G._offset),_e)}))}},{key:"_addChunkToRequest",value:function(G){var Z=this,pe=this._offset,_e=this._offset+this.options.chunkSize;return G.setProgressHandler(function(ke){Z._emitProgress(pe+ke,Z._size)}),G.setHeader("Content-Type","application/offset+octet-stream"),(_e===1/0||_e>this._size)&&!this.options.uploadLengthDeferred&&(_e=this._size),this._source.slice(pe,_e).then(function(ke){var We=ke.value,Xe=ke.done;return Z.options.uploadLengthDeferred&&Xe&&(Z._size=Z._offset+(We&&We.size?We.size:0),G.setHeader("Upload-Length",Z._size)),null===We?Z._sendRequest(G):(Z._emitProgress(Z._offset,Z._size),Z._sendRequest(G,We))})}},{key:"_handleUploadResponse",value:function(G,Z){var pe=parseInt(Z.getHeader("Upload-Offset"),10);if(!isNaN(pe))return this._emitProgress(pe,this._size),this._emitChunkComplete(pe-this._offset,pe,this._size),this._offset=pe,pe==this._size?(this._emitSuccess(),void this._source.close()):void this._performUpload();this._emitHttpError(G,Z,"tus: invalid or missing offset value")}},{key:"_openRequest",value:function(G,Z){var pe=I(G,Z,this.options);return this._req=pe,pe}},{key:"_removeFromUrlStorage",value:function(){var G=this;!this._urlStorageKey||(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(Z){G._emitError(Z)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var G=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var Z={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?Z.parallelUploadUrls=this._parallelUploadUrls:Z.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,Z).then(function(pe){return G._urlStorageKey=pe}).catch(function(pe){G._emitError(pe)})}}},{key:"_sendRequest",value:function(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return P(G,Z,this.options)}}],[{key:"terminate",value:function(G,Z){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===Z&&(Z={});var pe=I("DELETE",G,Z);return P(pe,null,Z).then(function(_e){if(204!==_e.getStatus())throw new U("tus: unexpected response while terminating upload",null,pe,_e)}).catch(function(_e){if(_e instanceof U||(_e=new U("tus: failed to terminate upload",_e,pe,null)),!p(_e,0,Z))throw _e;var ke=Z.retryDelays[0],We=Z.retryDelays.slice(1),Xe=H({},Z,{retryDelays:We});return new Promise(function(Qe){return setTimeout(Qe,ke)}).then(function(){return J.terminate(G,Xe)})})}}]),J}();function C(J){var Q=[];for(var G in J)Q.push("".concat(G," ").concat(o.Base64.encode(J[G])));return Q.join(",")}function D(J,Q){return J>=Q&&J<Q+100}function I(J,Q,G){var Z=G.httpStack.createRequest(J,Q);Z.setHeader("Tus-Resumable","1.0.0");var pe=G.headers||{};for(var _e in pe)Z.setHeader(_e,pe[_e]);if(G.addRequestId){var ke="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(J){var Q=16*Math.random()|0;return("x"==J?Q:3&Q|8).toString(16)});Z.setHeader("X-Request-ID",ke)}return Z}function P(J,Q,G){return("function"==typeof G.onBeforeRequest?Promise.resolve(G.onBeforeRequest(J)):Promise.resolve()).then(function(){return J.send(Q).then(function(pe){return("function"==typeof G.onAfterResponse?Promise.resolve(G.onAfterResponse(J,pe)):Promise.resolve()).then(function(){return pe})})})}function p(J,Q,G){if(null==G.retryDelays||Q>=G.retryDelays.length||null==J.originalRequest)return!1;if(G&&"function"==typeof G.onShouldRetry)return G.onShouldRetry(J,Q,G);var Z=J.originalResponse?J.originalResponse.getStatus():0;return(!D(Z,400)||409===Z||423===Z)&&function(){var J=!0;return"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(J=!1),J}()}function Y(J,Q){return new(l())(Q,J).toString()}b.defaultOptions={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null};const ee=b;function se(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}var he=function(){function J(){!function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,J)}return function(J,Q,G){Q&&se(J.prototype,Q),G&&se(J,G)}(J,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(G){return Promise.resolve([])}},{key:"removeUpload",value:function(G){return Promise.resolve()}},{key:"addUpload",value:function(G,Z){return Promise.resolve(null)}}]),J}();function z(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}var me=!1;try{me="localStorage"in window;var ce="tusSupport";localStorage.setItem(ce,localStorage.getItem(ce))}catch(J){if(J.code!==J.SECURITY_ERR&&J.code!==J.QUOTA_EXCEEDED_ERR)throw J;me=!1}var we=me,Fe=function(){function J(){!function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,J)}return function(J,Q,G){Q&&z(J.prototype,Q),G&&z(J,G)}(J,[{key:"findAllUploads",value:function(){var G=this._findEntries("tus::");return Promise.resolve(G)}},{key:"findUploadsByFingerprint",value:function(G){var Z=this._findEntries("tus::".concat(G,"::"));return Promise.resolve(Z)}},{key:"removeUpload",value:function(G){return localStorage.removeItem(G),Promise.resolve()}},{key:"addUpload",value:function(G,Z){var pe=Math.round(1e12*Math.random()),_e="tus::".concat(G,"::").concat(pe);return localStorage.setItem(_e,JSON.stringify(Z)),Promise.resolve(_e)}},{key:"_findEntries",value:function(G){for(var Z=[],pe=0;pe<localStorage.length;pe++){var _e=localStorage.key(pe);
10if(0===_e.indexOf(G))try{var ke=JSON.parse(localStorage.getItem(_e));ke.urlStorageKey=_e,Z.push(ke)}catch(We){}}return Z}}]),J}();function Oe(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}function Ne(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}function Ce(J,Q,G){return Q&&Ne(J.prototype,Q),G&&Ne(J,G),J}var Ee=function(){function J(){Oe(this,J)}return Ce(J,[{key:"createRequest",value:function(G,Z){return new xe(G,Z)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),J}(),xe=function(){function J(Q,G){Oe(this,J),this._xhr=new XMLHttpRequest,this._xhr.open(Q,G,!0),this._method=Q,this._url=G,this._headers={}}return Ce(J,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(G,Z){this._xhr.setRequestHeader(G,Z),this._headers[G]=Z}},{key:"getHeader",value:function(G){return this._headers[G]}},{key:"setProgressHandler",value:function(G){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(Z){!Z.lengthComputable||G(Z.loaded)})}},{key:"send",value:function(){var G=this,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(pe,_e){G._xhr.onload=function(){pe(new Te(G._xhr))},G._xhr.onerror=function(ke){_e(ke)},G._xhr.send(Z)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),J}(),Te=function(){function J(Q){Oe(this,J),this._xhr=Q}return Ce(J,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(G){return this._xhr.getResponseHeader(G)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),J}();const ze=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};const Le=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};function qe(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}function Ke(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}function Je(J,Q,G){return Q&&Ke(J.prototype,Q),G&&Ke(J,G),J}var tt=function(){function J(Q){qe(this,J),this._file=Q,this.size=Q.size}return Je(J,[{key:"slice",value:function(G,Z){if(Le())return function(J){return new Promise(function(Q,G){var Z=new FileReader;Z.onload=function(){var pe=new Uint8Array(Z.result);Q({value:pe})},Z.onerror=function(pe){G(pe)},Z.readAsArrayBuffer(J)})}(this._file.slice(G,Z));var pe=this._file.slice(G,Z);return Promise.resolve({value:pe})}},{key:"close",value:function(){}}]),J}(),it=function(){function J(Q,G){qe(this,J),this._chunkSize=G,this._buffer=void 0,this._bufferOffset=0,this._reader=Q,this._done=!1}return Je(J,[{key:"slice",value:function(G,Z){return G<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(G,Z)}},{key:"_readUntilEnoughDataOrDone",value:function(G,Z){var pe=this,_e=Z<=this._bufferOffset+at(this._buffer);if(this._done||_e){var ke=this._getDataFromBuffer(G,Z),We=null==ke&&this._done;return Promise.resolve({value:ke,done:We})}return this._reader.read().then(function(Xe){var Qe=Xe.value;return Xe.done?pe._done=!0:void 0===pe._buffer?pe._buffer=Qe:pe._buffer=function(J,Q){if(J.concat)return J.concat(Q);if(J instanceof Blob)return new Blob([J,Q],{type:J.type});if(J.set){var G=new J.constructor(J.length+Q.length);return G.set(J),G.set(Q,J.length),G}throw new Error("Unknown data type")}(pe._buffer,Qe),pe._readUntilEnoughDataOrDone(G,Z)})}},{key:"_getDataFromBuffer",value:function(G,Z){G>this._bufferOffset&&(this._buffer=this._buffer.slice(G-this._bufferOffset),this._bufferOffset=G);var pe=0===at(this._buffer);return this._done&&pe?null:this._buffer.slice(0,Z-G)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),J}();function at(J){return void 0===J?0:void 0!==J.size?J.size:J.length}var ot=function(){function J(){qe(this,J)}return Je(J,[{key:"openFile",value:function(G,Z){return ze()&&G&&void 0!==G.uri?function(J){return new Promise(function(Q,G){var Z=new XMLHttpRequest;Z.responseType="blob",Z.onload=function(){var pe=Z.response;Q(pe)},Z.onerror=function(pe){G(pe)},Z.open("GET",J),Z.send()})}(G.uri).then(function(pe){return new tt(pe)}).catch(function(pe){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(pe))}):"function"==typeof G.slice&&void 0!==G.size?Promise.resolve(new tt(G)):"function"==typeof G.read?(Z=+Z,isFinite(Z)?Promise.resolve(new it(G,Z)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),J}();function lt(J){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(J)}function gt(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}function mt(J,Q){for(var G=0;G<Q.length;G++){var Z=Q[G];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(J,Z.key,Z)}}function Pt(J,Q){return(Pt=Object.setPrototypeOf||function(Z,pe){return Z.__proto__=pe,Z})(J,Q)}function bt(J,Q){return!Q||"object"!==lt(Q)&&"function"!=typeof Q?function(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J):Q}function k(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(J){return!1}}function W(J){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(J)}function q(J,Q){var G=Object.keys(J);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(J);Q&&(Z=Z.filter(function(pe){return Object.getOwnPropertyDescriptor(J,pe).enumerable})),G.push.apply(G,Z)}return G}function re(J){for(var Q=1;Q<arguments.length;Q++){var G=null!=arguments[Q]?arguments[Q]:{};
10Q%2?q(Object(G),!0).forEach(function(Z){ue(J,Z,G[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(G)):q(Object(G)).forEach(function(Z){Object.defineProperty(J,Z,Object.getOwnPropertyDescriptor(G,Z))})}return J}function ue(J,Q,G){return Q in J?Object.defineProperty(J,Q,{value:G,enumerable:!0,configurable:!0,writable:!0}):J[Q]=G,J}var de=re({},ee.defaultOptions,{httpStack:new Ee,fileReader:new ot,urlStorage:we?new Fe:new he,fingerprint:function(J,Q){return ze()?Promise.resolve(function(J,Q){var G=J.exif?function(J){var Q=0;if(0===J.length)return Q;for(var G=0;G<J.length;G++){Q=(Q<<5)-Q+J.charCodeAt(G),Q&=Q}return Q}(JSON.stringify(J.exif)):"noexif";return["tus-rn",J.name||"noname",J.size||"nosize",G,Q.endpoint].join("/")}(J,Q)):Promise.resolve(["tus-br",J.name,J.type,J.size,J.lastModified,Q.endpoint].join("-"))}}),ye=function(J){!function(J,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Q&&Pt(J,Q)}(G,J);var Q=function(J){return function(){var G,Q=W(J);if(k()){var Z=W(this).constructor;G=Reflect.construct(Q,arguments,Z)}else G=Q.apply(this,arguments);return bt(this,G)}}(G);function G(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gt(this,G),pe=re({},de,{},pe),Q.call(this,Z,pe)}return function(J,Q,G){Q&&mt(J.prototype,Q),G&&mt(J,G)}(G,null,[{key:"terminate",value:function(pe,_e,ke){return _e=re({},de,{},_e),ee.terminate(pe,_e,ke)}}]),G}(ee),Ae=window,Ie=Ae.XMLHttpRequest,$e=Ae.Blob,st=Ie&&$e&&"function"==typeof $e.prototype.slice},2135:(O,v,e)=>{"use strict";var o=e(90465),n=e(76959),l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,d=/^[a-zA-Z]:/,c=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function t(F){return(F||"").toString().replace(c,"")}var h=[["#","hash"],["?","query"],function(y,S){return r(S.protocol)?y.replace(/\\/g,"/"):y},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],i={hash:1,query:1};function s(F){var H,S=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},x={},L=typeof(F=F||S);if("blob:"===F.protocol)x=new A(unescape(F.pathname),{});else if("string"===L)for(H in x=new A(F,{}),i)delete x[H];else if("object"===L){for(H in F)H in i||(x[H]=F[H]);void 0===x.slashes&&(x.slashes=l.test(F.href))}return x}function r(F){return"file:"===F||"ftp:"===F||"http:"===F||"https:"===F||"ws:"===F||"wss:"===F}function f(F,y){F=t(F),y=y||{};var N,S=a.exec(F),x=S[1]?S[1].toLowerCase():"",L=!!S[2],H=!!S[3],K=0;return L?H?(N=S[2]+S[3]+S[4],K=S[2].length+S[3].length):(N=S[2]+S[4],K=S[2].length):H?(N=S[3]+S[4],K=S[3].length):N=S[4],"file:"===x?K>=2&&(N=N.slice(2)):r(x)?N=S[4]:x?L&&(N=N.slice(2)):K>=2&&r(y.protocol)&&(N=S[4]),{protocol:x,slashes:L||r(x),slashesCount:K,rest:N}}function A(F,y,S){if(F=t(F),!(this instanceof A))return new A(F,y,S);var x,L,H,K,N,R,_=h.slice(),m=typeof y,b=this,C=0;for("object"!==m&&"string"!==m&&(S=y,y=null),S&&"function"!=typeof S&&(S=n.parse),x=!(L=f(F||"",y=s(y))).protocol&&!L.slashes,b.slashes=L.slashes||x&&y.slashes,b.protocol=L.protocol||y.protocol||"",F=L.rest,("file:"===L.protocol&&(2!==L.slashesCount||d.test(F))||!L.slashes&&(L.protocol||L.slashesCount<2||!r(b.protocol)))&&(_[3]=[/(.*)/,"pathname"]);C<_.length;C++)"function"!=typeof(K=_[C])?(H=K[0],R=K[1],H!=H?b[R]=F:"string"==typeof H?~(N=F.indexOf(H))&&("number"==typeof K[2]?(b[R]=F.slice(0,N),F=F.slice(N+K[2])):(b[R]=F.slice(N),F=F.slice(0,N))):(N=H.exec(F))&&(b[R]=N[1],F=F.slice(0,N.index)),b[R]=b[R]||x&&K[3]&&y[R]||"",K[4]&&(b[R]=b[R].toLowerCase())):F=K(F,b);S&&(b.query=S(b.query)),x&&y.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==y.pathname)&&(b.pathname=function(F,y){if
10(""===F)return y;for(var S=(y||"/").split("/").slice(0,-1).concat(F.split("/")),x=S.length,L=S[x-1],H=!1,K=0;x--;)"."===S[x]?S.splice(x,1):".."===S[x]?(S.splice(x,1),K++):K&&(0===x&&(H=!0),S.splice(x,1),K--);return H&&S.unshift(""),("."===L||".."===L)&&S.push(""),S.join("/")}(b.pathname,y.pathname)),"/"!==b.pathname.charAt(0)&&r(b.protocol)&&(b.pathname="/"+b.pathname),o(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(K=b.auth.split(":"),b.username=K[0]||"",b.password=K[1]||""),b.origin="file:"!==b.protocol&&r(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}A.prototype={set:function(F,y,S){var x=this;switch(F){case"query":"string"==typeof y&&y.length&&(y=(S||n.parse)(y)),x[F]=y;break;case"port":x[F]=y,o(y,x.protocol)?y&&(x.host=x.hostname+":"+y):(x.host=x.hostname,x[F]="");break;case"hostname":x[F]=y,x.port&&(y+=":"+x.port),x.host=y;break;case"host":x[F]=y,/:\d+$/.test(y)?(y=y.split(":"),x.port=y.pop(),x.hostname=y.join(":")):(x.hostname=y,x.port="");break;case"protocol":x.protocol=y.toLowerCase(),x.slashes=!S;break;case"pathname":case"hash":if(y){var L="pathname"===F?"/":"#";x[F]=y.charAt(0)!==L?L+y:y}else x[F]=y;break;default:x[F]=y}for(var H=0;H<h.length;H++){var K=h[H];K[4]&&(x[K[1]]=x[K[1]].toLowerCase())}return x.origin="file:"!==x.protocol&&r(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString(),x},toString:function(F){(!F||"function"!=typeof F)&&(F=n.stringify);var y,S=this,x=S.protocol;x&&":"!==x.charAt(x.length-1)&&(x+=":");var L=x+(S.slashes||r(S.protocol)?"//":"");return S.username&&(L+=S.username,S.password&&(L+=":"+S.password),L+="@"),L+=S.host+S.pathname,(y="object"==typeof S.query?F(S.query):S.query)&&(L+="?"!==y.charAt(0)?"?"+y:y),S.hash&&(L+=S.hash),L}},A.extractProtocol=f,A.location=s,A.trimLeft=t,A.qs=n,O.exports=A},11620:O=>{"use strict";function v(e,o){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=o,this.parts=e.split(o)}v.prototype.match=function(e){var l,d,o=!0,n=this.parts,a=n.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(d=(e||"").split(this.separator),l=0;o&&l<a;l++)"*"!==n[l]&&(o=l<d.length&&n[l]===d[l]);o=o&&d}else o=!1;else if("function"==typeof e.splice)for(o=[],l=e.length;l--;)this.match(e[l])&&(o[o.length]=e[l]);else if("object"==typeof e)for(var u in o={},e)this.match(u)&&(o[u]=e[u]);return o},O.exports=function(e,o,n){var l=new v(e,n||/[\/\.]/);return void 0!==o?l.match(o):l}},25391:O=>{"use strict";var a,v="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},n=0,l=0;function d(t){var h="";do{h=v[t%64]+h,t=Math.floor(t/64)}while(t>0);return h}function c(){var t=d(+new Date);return t!==a?(n=0,a=t):t+"."+d(n++)}for(;l<64;l++)o[v[l]]=l;c.encode=d,c.decode=function(t){var h=0;for(l=0;l<t.length;l++)h=64*h+o[t.charAt(l)];return h},O.exports=c},45529:O=>{"use strict";O.exports='<ng-template #loading>\n Bitte warten. Anwendung wird geladen...\n</ng-template>\n<ng-container *ngIf="profile$ | async as profile; else loading">\n <mat-vertical-stepper #stepper="matVerticalStepper" matVerticalStepperScroller [linear]="false"\n [selectedIndex]="selectedTab.value" (selectionChange)="onStepSelectionChange($event)"\n class="-ml-4 sm:ml-0 md:ml-0">\n <mat-step>\n <ng-template matStepLabel>\n <div class="step-label">\n Wie hei\xdfen Sie?\n </div>\n </ng-template>\n <form [formGroup]="nameFormGroup" (ngSubmit)="onNameFormSubmit()" invalidControlScroll>\n <div class="grid grid-cols-1 row-gap-6 lg:grid-cols-4 lg:gap-5">\n <div fxLayout="row" fxLayoutAlign="start start">\n <mat-icon icon iconName="business_deal_handshake" color="primary" class="mr-2"></mat-icon>\n <p class="text-lg leading-7 font-medium tracking-tight text-gray-900">\n Anrede\n </p>\n </div>\n <div\n class="grid grid-cols-1 row-gap-8 sm:grid-cols-1 sm:col-gap-5 sm:row-gap-6 md:grid-cols-1 lg:col-span-3">\n <div fxLayout="column">\n <div fxLayout="column" fxLayoutAlign="start start">\n <mat-label style="color: rgba(0, 0, 0, 0.54)">Geschlecht\n </mat-label>\n <mat-button-toggle-group required formControlName="legalGender"\n [ngModel]="profile.legalGender"\n (change)="onLegalGenderChanged()"\n class="flex flex-col sm:flex-row items-start">\n <mat-button-toggle value="male">\n <mat-icon icon iconName="gender_male" color="primary" width="24" height="24"\n class="mr-2">\n </mat-icon>
10\n <span class="body-1">M\xe4nnlich</span>\n </mat-button-toggle>\n <mat-button-toggle value="female">\n <mat-icon icon iconName="gender_female" color="primary" width="24" height="24"\n class="mr-2">\n </mat-icon>\n <span class="body-1">Weiblich</span>\n </mat-button-toggle>\n <mat-button-toggle value="miscellaneous">\n <mat-icon icon iconName="gender_neutral" color="primary" width="24" height="24"\n class="mr-2">\n </mat-icon>\n <span class="body-1">Divers</span>\n </mat-button-toggle>\n </mat-button-toggle-group>\n <mat-hint class="text-hint">\n Das Geschlecht laut Ihrem Reisepass\n </mat-hint>\n <mat-error\n *ngIf="genderFormGroupSubmitted && nameFormGroup.controls.legalGender.hasError(\'required\')">\n Geschlecht ist erforderlich.\n </mat-error>\n </div>\n <div *ngIf="genderExpanded" fxLayout="column" fxLayoutAlign="start stretch">\n <mat-form-field class="w-300 max-w-full mt-2">\n <mat-label>Geschlechtsidentit\xe4t</mat-label>\n <mat-icon *ngIf="genderIdentity.value == \'M\xe4nnlich\'" matPrefix icon iconName="gender_male"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Weiblich\'" matPrefix icon\n iconName="gender_female"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Nichtbin\xe4r\'" matPrefix icon\n iconName="gender_neutral"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Transgender\'" matPrefix icon\n iconName="gender_transgender"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Genderqueer\'" matPrefix icon\n iconName="single_neutral"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Intersex\'" matPrefix icon\n iconName="single_neutral"\n color="primary" class="mr-2">\n </mat-icon>\n <mat-icon *ngIf="genderIdentity.value == \'Sonstiges\'" matPrefix icon\n iconName="single_neutral"\n color="primary" class="mr-2">\n </mat-icon>\n <input #genderIdentity matInput required [matAutocomplete]="auto"\n formControlName="genderIdentity" [ngModel]="profile.genderIdentity"\n (change)="onNameFormSubmit()" class="data-hj-suppress">\n <mat-autocomplete #auto="matAutocomplete" (optionSelected)="onNameFormSubmit()">\n <mat-option *ngFor="let gender of filteredGenders$ | async" [value]="gender.name">\n <mat-icon icon iconName="{{ gender.icon }}" color="primary" width="24" height="24">\n </mat-icon>\n <span class="body-1">{{ gender.name }}</span>\n </mat-option>\n </mat-autocomplete>\n <button *ngIf="genderIdentityFormControl.value" mat-icon-button matSuffix type="button"\n (click)="resetGenderIdentityControl()">\n <mat-icon matSuffix>\n close\n </mat-icon>\n </button>\n <button *ngIf="!genderIdentityFormControl.value" mat-icon-button matSuffix type="button">\n <mat-icon matSuffix>\n arrow_drop_down\n </mat-icon>\n </button>\n <mat-hint>Das Geschlecht, mit dem Sie sich identifizieren</mat-hint>\n <mat-error *ngIf="nameFormGroup.controls.genderIdentity.hasError(\'required\')">\n Geschlechtsidentit\xe4t ist erforderlich.\n </mat-error>\n </mat-form-field>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Das Geschlecht sollte mit Ihrem aktuellen Reisepass \xfcbereinstimmen.\n Diese Angaben sind f\xfcr die eindeutige Identifizierung Ihrer Person zwingend notwendig.\n </div>\n </div>\n </blockquote>\n </div>\n <mat-form-field>\n <mat-label>Titel</mat-label>
10\n <input #title matInput formControlName="title" [ngModel]="profile.title" (change)="onNameFormSubmit()"\n class="data-hj-suppress">\n <mat-hint>\n Stand, Amt, kennzeichnende Bezeichnung wie \u201eProf. Dr.\u201c\n </mat-hint>\n <mat-hint align="end" aria-live="polite">\n {{title.value.length}} / {{titleMaxLength}}\n </mat-hint>\n <mat-error *ngIf="!nameFormGroup.controls.title.hasError(\'required\')\n && (nameFormGroup.controls[\'title\'].hasError(\'maxlength\'))">\n Titel darf nicht mehr als {{titleMaxLength}} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n </div>\n </div>\n </div>\n <div class="border-t border-gray-200 pt-8 mt-8 grid grid-cols-1 row-gap-6 lg:grid-cols-4 lg:gap-5">\n <div fxLayout="row" fxLayoutAlign="start start">\n <mat-icon icon iconName="single_neutral_id_card_4" color="primary" class="mr-2"></mat-icon>\n <p class="text-lg leading-7 font-medium tracking-tight text-gray-900">\n Name\n </p>\n </div>\n <div\n class="grid grid-cols-1 row-gap-8 sm:grid-cols-1 sm:col-gap-5 sm:row-gap-6 md:grid-cols-1 lg:col-span-3">\n <mat-form-field>\n <mat-label>Vorname</mat-label>\n <input #firstname matInput required formControlName="firstname"\n [ngModel]="profile.firstname" (change)="onNameFormSubmit()"\n class="data-hj-suppress">\n <mat-hint>\n Ihr erster Vorname laut Ihrem aktuellen Personalausweis\n </mat-hint>\n <mat-hint align="end" aria-live="polite">\n {{firstname.value.length}} / {{firstnameMaxLength}}\n </mat-hint>\n <mat-error *ngIf="nameFormGroup.controls.firstname.hasError(\'required\')">\n Vorname ist erforderlich.\n </mat-error>\n <mat-error *ngIf="!nameFormGroup.controls.firstname.hasError(\'required\')\n && (nameFormGroup.controls[\'firstname\'].hasError(\'minlength\')\n || nameFormGroup.controls[\'firstname\'].hasError(\'maxlength\'))">\n Vorname muss zwischen {{firstnameMinLength}} und {{firstnameMaxLength}} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n <mat-checkbox #useDifferentName color="primary" [checked]="false"\n formControlName="useDifferentName" [ngModel]="profile.useDifferentName"\n (change)="onUseDifferentNameChanged($event)"\n style="margin-top: -25px; color: rgba(0, 0, 0, 0.54)">\n Ich bin unter einem anderen Namen bekannt.\n </mat-checkbox>\n <mat-form-field *ngIf="useDifferentName.checked" style="margin-top: -25px">\n <mat-label>verwendeter Name</mat-label>\n <input #usedFirstname matInput formControlName="usedFirstname" (change)="onNameFormSubmit()"\n [ngModel]="profile.usedFirstname" (change)="onNameFormSubmit()" class="data-hj-suppress">\n <mat-hint>\n Name unter dem Sie bekannt sind (z.B. K\xfcnstlername)\n </mat-hint>\n <mat-hint align="end" aria-live="polite">\n {{usedFirstname.value.length}} / {{usedFirstnameMaxLength}}\n </mat-hint>\n <mat-error *ngIf="nameFormGroup.controls.usedFirstname.hasError(\'required\')">\n Name ist erforderlich.\n </mat-error>\n <mat-error *ngIf="nameFormGroup.controls[\'usedFirstname\'].hasError(\'minlength\')\n || nameFormGroup.controls[\'usedFirstname\'].hasError(\'maxlength\')">\n Name muss zwischen {{usedFirstnameMinLength}} und {{usedFirstnameMaxLength}} Zeichen lang\n sein.\n </mat-error>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Weitere Vornamen</mat-label>\n <input #middlename matInput formControlName="middlename" [ngModel]="profile.middlename"\n (change)="onNameFormSubmit()"\n class="data-hj-suppress">\n <mat-hint>\n optional weitere Vornamen, falls Sie mehrere Vornamen haben\n </mat-hint>
10\n <mat-hint align="end" aria-live="polite">\n {{middlename.value.length}} / {{middlenameMaxLength}}\n </mat-hint>\n <mat-error *ngIf="!nameFormGroup.controls.middlename.hasError(\'required\')\n && (nameFormGroup.controls[\'middlename\'].hasError(\'maxlength\'))">\n Feld f\xfcr weitere Vornamen darf nicht mehr als {{middlenameMaxLength}} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Nachname</mat-label>\n <input #lastname matInput required formControlName="lastname" [ngModel]="profile.lastname"\n (change)="onNameFormSubmit()"\n class="data-hj-suppress">\n <mat-hint>\n Ihr Nachname laut Ihrem aktuellen Personalausweis\n </mat-hint>\n <mat-hint align="end" aria-live="polite">\n {{lastname.value.length}} / {{lastnameMaxLength}}\n </mat-hint>\n <mat-error *ngIf="nameFormGroup.controls.lastname.hasError(\'required\')">\n Nachname ist erforderlich.\n </mat-error>\n <mat-error *ngIf="!nameFormGroup.controls.lastname.hasError(\'required\')\n && (nameFormGroup.controls[\'lastname\'].hasError(\'minlength\')\n || nameFormGroup.controls[\'lastname\'].hasError(\'maxlength\'))">\n Nachname muss zwischen {{lastnameMinLength}} und {{lastnameMaxLength}} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Ihr Vor- und Nachname sollte mit Ihrem aktuellen Personalausweis oder F\xfchrerschein\n \xfcbereinstimmen.\n Diese Angaben sind f\xfcr die eindeutige Identifizierung Ihrer Person zwingend notwendig.\n </div>\n </div>\n </blockquote>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="alert_triangle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n <strong>ACHTUNG:</strong> Unser Service erlaubt zur Zeit ausschlie\xdflich eine(n) Benutzer(in)\n pro Benutzerkonto bzw. E-Mail. Es ist\n <strong>nicht</strong>\n m\xf6glich Dokumente f\xfcr unterschiedliche Personen\n unter einem Benutzerkonto zu erstellen oder zu hinterlegen. Wenn Sie Dokumente f\xfcr Sie und\n Ihre(n) Partner(in) erstellen m\xf6chten, m\xfcssen Sie einen weiteren Benutzeraccount mit\n einer anderen Email-Adresse f\xfcr Ihre(n) Partner(in) anlegen.\n </div>\n </div>\n </blockquote>\n </div>\n </div>\n </form>\n <button debounceClick (debounceClick)="checkNameFormAndCompleteStep()" color="primary" mat-raised-button\n type="button">\n <mat-icon matSuffix icon iconName="navigation_arrows_right_1" color="secondary" width="20" height="20">\n </mat-icon>\n <span class="uppercase px-2">Weiter zur n\xe4chsten Frage</span>\n </button>\n </mat-step>\n\n <mat-step>\n <ng-template matStepLabel>\n <div class="step-label">\n Wann und wo wurden Sie geboren?\n </div>\n </ng-template>\n <form [formGroup]="birthFormGroup" (ngSubmit)="onBirthFormSubmit()" invalidControlScroll\n class="grid grid-cols-1 row-gap-6 lg:grid-cols-4 lg:gap-5">\n <div fxLayout="row" fxLayoutAlign="start start">\n <mat-icon icon iconName="birthday" color="primary" class="mr-2"></mat-icon>\n <p class="text-lg leading-7 font-medium tracking-tight text-gray-900">\n Geburtstag und -ort\n </p>\n </div>\n <div\n class="grid grid-cols-1 row-gap-8 sm:grid-cols-1 sm:col-gap-5 sm:row-gap-6 md:grid-cols-1 lg:col-span-3">\n <div fxLayout="column">\n <mat-form-field>\n <mat-label>Geburtstag</mat-label>\n <input matInput required [required]="true" formControlName="birthday" [ngModel]="birthday"\
10n [matDatepicker]="birthdayPicker"\n [min]="minBirthdayDate"\n [max]="maxBirthdayDate" (dateChange)="onBirthFormSubmit()"\n class="data-hj-suppress">\n <mat-icon icon iconName="calendar_date" color="primary" matPrefix class="mr-2"></mat-icon>\n <mat-datepicker-toggle [for]="birthdayPicker" matSuffix>\n <mat-icon matDatepickerToggleIcon>mouse</mat-icon>\n </mat-datepicker-toggle>\n <mat-datepicker #birthdayPicker touchUi startView="multi-year"\n [startAt]="startBirthdayDate"></mat-datepicker>\n <mat-hint>\n Verwenden Sie bitte das Format DD.MM.YYYY (z.B. 30.12.1960).\n </mat-hint>\n <mat-error *ngIf="birthFormGroup.controls[\'birthday\'].hasError(\'required\')">\n Geburtstag ist erforderlich.\n </mat-error>\n <mat-error *ngIf="birthFormGroup.controls[\'birthday\'].hasError(\'matDatepickerParse\')">\n "{{birthFormGroup.controls[\'birthday\'].getError(\'matDatepickerParse\').text}}"\n ist ein ung\xfcltiges Datum.\n </mat-error>\n <mat-error *ngIf="birthFormGroup.controls[\'birthday\'].hasError(\'matDatepickerMin\')">\n Der Ersteller sollte nicht \xe4lter als 110 Jahre alt sein.\n Das Geburtsdatum darf nicht\n vor {{minBirthdayDate | translocoDate: { dateStyle: \'medium\' } }} liegen.\n </mat-error>\n <mat-error *ngIf="birthFormGroup.controls[\'birthday\'].hasError(\'matDatepickerMax\')">\n Der Ersteller muss mindestens 18 Jahre alt sein.\n Das Geburtsdatum darf nicht\n nach {{maxBirthdayDate | translocoDate: { dateStyle: \'medium\' } }} liegen.\n </mat-error>\n </mat-form-field>\n <mat-google-maps-autocomplete\n type="city"\n addressLabelText="Geburtsort"\n placeholderText="Bitte geben Sie Ihren Geburtsort ein."\n iconName="pin_location_1"\n hintText="Land ebenfalls angeben, falls nicht in Deutschland (z.B. \u201eBern, Schweiz\u201c)"\n requiredErrorText="Geburtsort ist ein Pflichtfeld."\n invalidErrorText="Geburtsort ist ung\xfcltig. Bitte treffen Sie eine Auswahl aus der Autovervollst\xe4ndigung."\n [required]="true"\n #birthplaceComponent\n [model]="profile.birthplaceDisplayText" (autocompleteSelected)="onBirthFormSubmit()"\n [addressSearchControl]="birthFormGroup.controls.birthplace">\n </mat-google-maps-autocomplete>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Der Geburtstag und -ort dient der eindeutigen Identifikation Ihrer Person (z.B. bei\n Namensgleichheit). Dar\xfcber hinaus sind diese Angaben sp\xe4ter f\xfcr die Registrierung im Vorsorgeregister\n zwingend notwendig.\n </div>\n </div>\n </blockquote>\n </div>\n </div>\n </form>\n <button debounceClick (debounceClick)="checkBirthFormAndCompleteStep()" color="primary" mat-raised-button\n type="button">\n <mat-icon matSuffix icon iconName="navigation_arrows_right_1" color="secondary" width="20" height="20">\n </mat-icon>\n <span class="uppercase px-2">Weiter zur n\xe4chsten Frage</span>\n </button>\n </mat-step>\n\n <mat-step>\n <ng-template matStepLabel>\n <div class="step-label">\n Wie lautet Ihr Hauptwohnsitz?\n </div>\n </ng-template>\n <form [formGroup]="addressFormGroup" (ngSubmit)="onAddressFormSubmit()" invalidControlScroll\n class="grid grid-cols-1 row-gap-6 lg:grid-cols-4 lg:gap-5">\n <div fxLayout="row" fxLayoutAlign="start start">\n <mat-icon icon iconName="house" color="primary" class="mr-2"></mat-icon>\n <p class="text-lg leading-7 font-medium tracking-tight text-gray-900">\n Wohnsitz\n </p>\n </div>\n <div\n class="grid grid-cols-1 row-gap-8 sm:grid-cols-1 sm:col-gap-5 sm:row-gap-6 md:grid-cols-1 lg:col-span-3">\n <div fxLayout="column">\n <mat-google-maps-autocomplete\n type="place"\n addressLabelText="Adresse"\n placeholderText="Bitte geben Sie Ihre Adresse ein."\n iconName="pin_location_1"\n hintText="Bitte geben Sie Ihre vollst\xe4ndige Anschrift inkl. Stra\xdfe und Hausnummer an."\n requiredErrorText="Adresse ist ein Pflichtfeld."\n invalidErrorText="Adresse ist ung\xfcltig. Bitte treffen Sie eine Auswahl aus der Autovervollst\xe4ndigung."\n #addressComponent\n [model]="profile.addressDisplayText" (autocompleteSelected)="onAddressFormSubmit()"\n [addressSearchControl]="addressFormGroup.controls.address">\n </mat-google-maps-autocomplete>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Diese Angaben sind sp\xe4ter f\xfcr die Registrierung im Vorsorgeregister zwingend notwendig.\n </div>\n </div>\n </blockquote>\n </div>\n </div>\n </form>\n <button debounceClick (debounceClick)="checkAddressFormAndCompleteStep()" color="primary" mat-raised-button\n type="button">\n <mat-icon matSuffix icon iconName="navigation_arrows_right_1" color="secondary" width="20" height="20">\n </mat-icon>
10\n <span class="uppercase px-2">Weiter zur n\xe4chsten Frage</span>\n </button>\n </mat-step>\n\n <mat-step>\n <ng-template matStepLabel>\n <div class="step-label">\n Wie sind Sie erreichbar?\n </div>\n </ng-template>\n <form [formGroup]="communicationFormGroup" (ngSubmit)="onCommunicationFormSubmit()" invalidControlScroll\n class="grid grid-cols-1 row-gap-6 lg:grid-cols-4 lg:gap-5">\n <div fxLayout="row" fxLayoutAlign="start start">\n <mat-icon icon iconName="phone_action_email" color="primary" class="mr-2"></mat-icon>\n <p class="text-lg leading-7 font-medium tracking-tight text-gray-900">\n Kontaktdaten\n </p>\n </div>\n <div\n class="grid grid-cols-1 row-gap-8 sm:grid-cols-1 sm:col-gap-5 sm:row-gap-6 md:grid-cols-1 lg:col-span-3">\n <div fxLayout="column" *ngIf="user$ | async as user">\n <mat-form-field fxFlex="grow">\n <mat-label>Festnetz</mat-label>\n <intl-phone-input #phoneComponent [preferredCountries]="[\'de\', \'at\', \'ch\']"\n [enablePlaceholder]="true"\n [enableSearch]="true" name="phone" (change)="onCommunicationFormSubmit()"\n formControlName="phone" class="data-hj-suppress"></intl-phone-input>\n <mat-icon matPrefix icon iconName="phone_retro_1" color="primary" class="mr-2"></mat-icon>\n <mat-hint>Bitte geben Sie die Telefonnummer im internationalen Format ein.\n z.B. {{phoneComponent.selectedCountry.placeHolder}}</mat-hint>\n <mat-error *ngIf="communicationFormGroup.controls[\'phone\']?.errors?.validatePhoneNumber">\n Telefonnummer ist ung\xfcltig.\n </mat-error>\n </mat-form-field>\n <mat-form-field fxFlex="grow" class="mt-2">\n <mat-label>Mobilfunk</mat-label>\n <intl-phone-input #mobileComponent [preferredCountries]="[\'de\', \'at\', \'ch\']"\n [readonly]="profile.accountType == \'phone\'"\n [disabled]="profile.accountType == \'phone\'"\n [enablePlaceholder]="true"\n [enableSearch]="true" name="mobile" (change)="onCommunicationFormSubmit()"\n formControlName="mobile" class="data-hj-suppress">\n </intl-phone-input>\n <mat-icon matPrefix icon iconName="phone_hand_hold_1" color="primary"\n class="mr-2"></mat-icon>\n <mat-hint *ngIf="profile.accountType != \'phone\'">\n Bitte geben Sie die Telefonnummer im internationalen Format ein.\n z.B. {{mobileComponent.selectedCountry.placeHolder}}\n </mat-hint>\n <mat-hint *ngIf="profile.accountType == \'phone\'">\n Die Telefonnummer ist Ihr pers\xf6nlicher Benutzername und darf daher nicht nachtr\xe4glich\n ver\xe4ndert werden.\n </mat-hint>\n <mat-error *ngIf="communicationFormGroup.controls[\'mobile\']?.errors?.validatePhoneNumber">\n Telefonnummer ist ung\xfcltig.\n </mat-error>\n </mat-form-field>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Ihre Telefonnummern werden nur f\xfcr den Notfall in Ihren Dokumenten hinterlegt.\n Wir werden Sie niemals telefonisch kontaktieren!\n </div>\n </div>\n </blockquote>\n <mat-form-field fxFlex="grow">\n <mat-label>E-Mail</mat-label>\n <input #email matInput required autocomplete="email"\n [readonly]="profile.accountType == \'email\'"\n [disabled]="profile.accountType == \'email\'"\n class="text-gray-600 data-hj-suppress"\
10n formControlName="email" [ngModel]="profile.email" maxlength="{{emailMaxLength}}"\n (keydown.space)="$event.preventDefault()" onDrag="return false" onDrop="return false"\n onPaste="return false" (change)="onCommunicationFormSubmit()">\n <mat-icon matPrefix icon iconName="envelope" color="primary" class="mr-2"></mat-icon>\n <mat-icon *ngIf="this.firebaseAuthService.isEmailVerified()"\n matSuffix icon iconName="shield_check" color="primary"\n class="mr-2" style="color: #48BB78"\n matTooltip="E-Mail wurde erfolgreich verifiziert."></mat-icon>\n <mat-icon *ngIf="!this.firebaseAuthService.isEmailVerified() && user.email != null"\n matSuffix icon iconName="alert_triangle" color="primary"\n class="mr-2" style="color: #F56565"\n matTooltip="E-Mail wurde noch nicht verifiziert."></mat-icon>\n <mat-hint *ngIf="profile.accountType != \'email\'">Ihre E-Mail-Adresse, \xfcber die Sie jederzeit\n erreichbar sind.\n </mat-hint>\n <mat-hint *ngIf="profile.accountType == \'email\'">\n Die E-Mail-Adresse ist Ihr pers\xf6nlicher Benutzername und darf daher nicht nachtr\xe4glich\n ver\xe4ndert werden.<br/>\n <div *ngIf="!this.firebaseAuthService.isEmailVerified()" style="color: #F56565">\n Diese E-Mail-Adresse wurde noch nicht best\xe4tigt.\n </div>\n </mat-hint>\n <mat-hint align="end" aria-live="polite">\n {{email.value.length}} / {{emailMaxLength}}\n </mat-hint>\n <mat-error *ngIf="communicationFormGroup.controls.email.hasError(\'required\')">\n E-Mail ist erforderlich.\n </mat-error>\n <mat-error *ngIf="communicationFormGroup.controls.email.hasError(\'pattern\')">\n Bitte gebe eine g\xfcltige E-Mail-Adresse ein.\n </mat-error>\n <mat-error *ngIf="communicationFormGroup.controls.email.hasError(\'maxlength\')">\n E-Mail darf maximal {{ emailMaxLength }} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n <blockquote>\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="information_circle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n Ihre E-Mail-Adresse nutzen wir, um Sie \xfcber gesetzliche \xc4nderungen zu informieren und Sie\n in regelm\xe4\xdfigen Abst\xe4nden an die Aktualisierung Ihrer Vorsorgedokumente zu erinnern.\n </div>\n </div>\n </blockquote>\n <blockquote *ngIf="profile.accountType == \'email\' && !this.firebaseAuthService.isEmailVerified()">\n <div class="flex flex-col items-center sm:flex-row sm:items-center">\n <mat-icon icon iconName="alert_triangle" color="primary" width="30" height="30"\n class="mb-4 sm:mb-0"></mat-icon>\n <div class="sm:pl-4">\n <div class="mt-2 mb-2"><strong>Ihre E-Mail-Adresse wurde noch nicht best\xe4tigt!</strong></div>\n <div class="mt-2 mb-2">Um Missbrauch zu vermeiden, m\xfcssen Sie Ihre E-Mail verifizieren:</div>\n <div class="mt-2 mb-2">\n <ol class="ml-4">\n <li style="list-style: decimal;">\xd6ffnen Sie Ihr E-Mail-Postfach.</li>\n <li style="list-style: decimal;">\xd6ffnen Sie die E-Mail mit dem Betreff "Bitte Anmeldung\n best\xe4tigen".\n </li>\n <li style="list-style: decimal;">Klicken Sie zur Best\xe4tigung auf die Schaltfl\xe4che\n "ANMELDUNG\n BEST\xc4TIGEN".\n </li>\n </ol>\n </div>\n <div class="mt-2 mb-2">
10\n <span style="color:#5c77ff"><strong>Sollten Sie in Ihrem E-Mail Postfach keine E-Mail von uns vorfinden, \xfcberpr\xfcfen\n Sie bitte Ihren Spam-Ordner.</strong></span>\n </div>\n <div>\n <button type="button" color="primary"\n (click)="checkIfEmailVerified()"\n mat-raised-button class="mt-2 mr-2 hide-in-export">\n <mat-icon icon iconName="synchronize_arrow_1" class="ltr:mr-3 rtl:ml-3"></mat-icon>\n <span class="uppercase">Noch einmal pr\xfcfen</span>\n </button>\n <button *ngIf="!emailSend"\n type="button" color="secondary" [disabled]="sendingEmail"\n (click)="resentEmailVerificationLink()"\n mat-raised-button class="hide-in-export">\n <mat-icon icon iconName="email_action_check" class="ltr:mr-3 rtl:ml-3"></mat-icon>\n <span class="uppercase"\n *ngIf="sendingEmail == false">E-Mail erneut senden</span>\n <span class="uppercase"\n *ngIf="sendingEmail">E-Mail wird versendet...</span>\n </button>\n </div>\n </div>\n </div>\n </blockquote>\n </div>\n </div>\n </form>\n <button debounceClick (debounceClick)="checkCommunicationFormAndCompleteStep()" color="primary" mat-raised-button\n type="button">\n <mat-icon matSuffix icon iconName="navigation_arrows_right_1" color="secondary" width="20" height="20">\n </mat-icon>\n <span class="uppercase px-2">Weiter zur n\xe4chsten Frage</span>\n </button>\n </mat-step>\n\n </mat-vertical-stepper>\n</ng-container>\n'},57308:O=>{"use strict";O.exports='<form *ngIf="screen == \'feedback\'" [formGroup]="form" invalidControlScroll>\n <div fxLayout="row" fxLayoutAlign="end start">\n <button mat-icon-button type="button" class="close-button" debounceClick (debounceClick)="close()">\n <mat-icon icon iconName="close" height="12px" width="12px"></mat-icon>\n </button>\n </div>\n <div fxLayout="row" fxLayoutAlign="start center" mat-dialog-title>\n <mat-icon icon iconName="feedback" fxLayout="column" fxLayoutAlign="center center"\n class="avatar h-12 w-12 align-middle ltr:mr-5 rtl:ml-5" color="primary"></mat-icon>\n <h2 class="m-0 flex sm:hidden md:hidden lg:hidden xl:hidden">Feedback</h2>\n <h2 class="m-0 hidden sm:flex md:flex lg:flex xl:flex">Feedback geben</h2>\n </div>\n\n <mat-divider class="-mx-6 text-border"></mat-divider>\n\n <mat-dialog-content fxLayout="column">\n\n <div class="mt-6 mb-6" fxLayout="column">\n <div fxLayout="column">\n <p *ngIf="data.rating == 1 || data.rating == 2">\n Wir bedauern sehr, dass Sie so schlechte Erfahrungen mit unserem Service gemacht haben. Gerne w\xfcrden\n wir mehr erfahren, wie es dazu gekommen ist. Wir sind stets bem\xfcht unseren Service\n zu verbessern und sind auf das ehrliche und offene Feedback unserer Kunden angewiesen.\n </p>\n <p *ngIf="data.rating == 3">\n Wir bedauern sehr, dass Sie mit uns nicht zufrieden sind. Gerne w\xfcrden\n wir mehr erfahren, wie es dazu gekommen ist. Wir sind stets bem\xfcht unseren Service\n zu verbessern und sind auf das ehrliche und offene Feedback unserer Kunden angewiesen.\n </p>\n <p *ngIf="data.rating == 4">\n Wir bedauern, dass Sie mit uns nicht ganz zufrieden sind. Was k\xf6nnen wir besser machen um volle\n f\xfcnf Sterne von Ihnen zu erhalten? Wir sind stets bem\xfcht unseren Service\n zu verbessern und sind auf das ehrliche und offene Feedback unserer Kunden angewiesen.\n </p>\n <div class="question mt-2">\n Was k\xf6nnen wir in Zukunft besser machen?\n </div>\n <div fxLayout="column" fxLayoutAlign="start start" class="mt-2">\n <quill-editor formControlName="message" [modules]="modules" class="w-full"\n placeholder="Bitte beschreiben Sie uns hier Ihre Erfahrungen und Vorschl\xe4ge f\xfcr Verbesserungen."\n (onContentChanged)="onMessageContentChanged($event)">\n </quill-editor>\n <mat-error *ngIf="this.formSubmitted && form.controls.message.hasError(\'required\')">\n Nachricht darf nicht leer sein.\n </mat-error>\n <mat-error *ngIf="!form.controls.message.hasError(\'required\')\n && (form.controls[\'message\'].hasError(\'minlength\')\n || form.controls[\'message\'].hasError(\'maxlength\'))">\n Nachricht muss zwischen {{messageMinLength}} und {{messageMaxLength}} Zeichen lang sein.\n </mat-error>\n </div>\n <div class="question mt-2">\n Wie k\xf6nnen wir Sie erreichen?\n </div>\n <mat-form-field fxFlex="grow">\n <mat-label>E-Mail</mat-label>\n <input #email matInput required autocomplete="email"\n formControlName="email" maxlength="{{emailMaxLength}}"\n (keydown.space)="$event.preventDefault()" onDrag="return false" onDrop="return false"\n onPaste="return false">\n <mat-icon matPrefix icon iconName="envelope" color="primary" class="mr-2"></mat-icon>\n <mat-hint>E-Mail-Adresse, unter der wir Sie am besten erreichen.</mat-hint>
10\n <mat-hint align="end" aria-live="polite">\n {{email.value.length}} / {{emailMaxLength}}\n </mat-hint>\n <mat-error *ngIf="form.controls.email.hasError(\'required\')">\n E-Mail-Adresse ist erforderlich.\n </mat-error>\n <mat-error *ngIf="form.controls.email.hasError(\'pattern\')">\n Bitte gebe eine g\xfcltige E-Mail-Adresse ein.\n </mat-error>\n <mat-error *ngIf="form.controls.email.hasError(\'maxlength\')">\n E-Mail-Adresse darf maximal {{ emailMaxLength }} Zeichen lang sein.\n </mat-error>\n </mat-form-field>\n </div>\n </div>\n\n </mat-dialog-content>\n\n <mat-divider class="-mx-6 text-border"></mat-divider>\n\n <mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">\n <button mat-button color="secondary" (debounceClick)="close()"\n class="mr-2 -ml-1 uppercase">\n <span class="uppercase inline-block sm:hidden md:hidden lg:hidden xl:hidden">verwerfen</span>\n <span\n class="uppercase hidden sm:inline-block md:inline-block lg:inline-block xl:inline-block">Feedback verwerfen</span>\n </button>\n <button mat-raised-button color="primary" type="submit" (debounceClick)="save()"\n class="mr-2 -ml-1">\n <mat-icon icon iconName="send_email" class="mr-1"></mat-icon>\n <span class="uppercase inline-block sm:hidden md:hidden lg:hidden xl:hidden">senden</span>\n <span\n class="uppercase hidden sm:inline-block md:inline-block lg:inline-block xl:inline-block">Feedback senden</span>\n </button>\n </mat-dialog-actions>\n</form>\n\n<div *ngIf="screen == \'feedback-send\'">\n <div fxLayout="row" fxLayoutAlign="end start">\n <button mat-icon-button type="button" class="close-button" debounceClick (debounceClick)="close()">\n <mat-icon icon iconName="close" height="12px" width="12px"></mat-icon>\n </button>\n </div>\n <div fxLayout="row" fxLayoutAlign="end start">\n <button mat-dialog-close mat-icon-button type="button" class="close-button">\n <mat-icon icon iconName="close" height="12px" width="12px"></mat-icon>\n </button>\n </div>\n <mat-dialog-content fxLayout="column">\n <div class="p-6 pb-0" fxLayout="column" fxLayoutAlign="center center">\n <div class="fill-current text-center">\n <ng-lottie [options]="messageSent" [styles]="styles"></ng-lottie>\n </div>\n </div>\n <p class="m-4 text-center text-xl">\n Vielen Dank! Ihr Feedback wurde versendet.\n </p>\n </mat-dialog-content>\n</div>\n'},98315:O=>{"use strict";O.exports='<form [formGroup]="form">\n <div fxLayout="row" fxLayoutAlign="end start">\n <button mat-icon-button type="button" class="close-button" debounceClick (debounceClick)="close()">\n <mat-icon icon iconName="close" height="12px" width="12px"></mat-icon>\n </button>\n </div>\n <div fxLayout="row" fxLayoutAlign="start center" mat-dialog-title>\n <mat-icon icon iconName="rating_star_give" fxLayout="column" fxLayoutAlign="center center"\n class="avatar h-12 w-12 align-middle ltr:mr-5 rtl:ml-5" color="primary"></mat-icon>\n <h2 class="m-0" fxFlex="column">Bitte bewerten Sie uns</h2>\n </div>\n\n <mat-divider class="-mx-6 text-border"></mat-divider>\n\n <mat-dialog-content fxLayout="column">\n\n <div class="mt-6 mb-6" fxLayout="column" fxLayoutGap="20px">\n <div class="px-4" fxLayout="column">\n <p>\n Kundenzufriedenheit ist uns extrem wichtig und wir w\xfcrden uns freuen, wenn Sie uns Ihre Eindr\xfccke und Feedback\n mitteilen w\xfcrden.\n </p>\n <h3 class="mt-2">Wie zufrieden sind Sie mit unserem Service?</h3>\n <star-rating #rating class="flex" formControlName="rating" [id]="\'rating\'"></star-rating>\n <h4 style="color:red" *ngIf="formSubmitted && form.controls.rating.hasError(\'required\')">Bitte geben Sie eine\n Bewertung ab.</h4>\n <h4 *ngIf="form.value.rating == 1">Ich bin sehr unzufrieden.</h4>\n <h4 *ngIf="form.value.rating == 2">Ich bin unzufrieden.</h4>\n <h4 *ngIf="form.value.rating == 3">Ich bin weder zufrieden noch unzufrieden.</h4>\n <h4 *ngIf="form.value.rating == 4">Ich bin zufrieden.</h4>\n <h4 *ngIf="form.value.rating == 5">Ich bin sehr zufrieden.</h4>\n </div>\n </div>\n </mat-dialog-content>\n\n <mat-divider class="-mx-6 text-border"></mat-divider>\n\n <mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">\n <button color="secondary" mat-button type="button"\n (click)="close()"\n matTooltip="Bewertung sp\xe4ter abgeben"\n class="mr-2 -ml-1">
10\n <span class="uppercase inline-block sm:hidden md:hidden lg:hidden xl:hidden">sp\xe4ter</span>\n <span\n class="uppercase hidden sm:inline-block md:inline-block lg:inline-block xl:inline-block">Sp\xe4ter bewerten</span>\n </button>\n <button color="primary" mat-raised-button type="button" autofocus (click)="submit()" class="mr-2 -ml-1">\n <span class="uppercase inline-block sm:hidden md:hidden lg:hidden xl:hidden">bewerten</span>\n <span\n class="uppercase hidden sm:inline-block md:inline-block lg:inline-block xl:inline-block">Bewertung abgeben</span>\n </button>\n </mat-dialog-actions>\n</form>\n\n\n'},49882:O=>{"use strict";O.exports='<form action="">\n <ng-template ngFor let-star [ngForOf]="stars" let-i="index">\n <input #ratingCheckbox class="star star-{{ star }}" id="star-{{ star }}-{{ id }}"\n type="radio" name="star" (click)="rate(star)"\n [checked]="value == star" [disabled]="disabled"/>\n <label class="star star-{{ star }}" for="star-{{ star }}-{{ id }}" matTooltip="{{ tooltip[i] }}"></label>\n </ng-template>\n</form>\n'},82203:O=>{"use strict";O.exports='<div fxLayout="row" fxLayoutAlign="end start">\n <button mat-icon-button type="button" class="close-button" debounceClick (debounceClick)="close()">\n <mat-icon icon iconName="close" height="12px" width="12px"></mat-icon>\n </button>\n</div>\n<div fxLayout="row" fxLayoutAlign="start center" mat-dialog-title>\n <mat-icon icon iconName="feedback" fxLayout="column" fxLayoutAlign="center center"\n class="avatar h-12 w-12 align-middle ltr:mr-5 rtl:ml-5" color="primary"></mat-icon>\n <h2 class="m-0 flex sm:hidden md:hidden lg:hidden xl:hidden">Bewertung</h2>\n <h2 class="m-0 hidden sm:flex md:flex lg:flex xl:flex">Bewertung teilen</h2>\n</div>\n\n<mat-divider class="-mx-6 text-border"></mat-divider>\n\n<mat-dialog-content fxLayout="column">\n\n <div class="mt-6 mb-6" fxLayout="column">\n <div fxLayout="column">\n <p>\n <strong>Vielen Dank f\xfcr Ihre positive Bewertung.</strong> Es freut uns au\xdferordendlich, dass Sie zufrieden sind.\n Unser Team arbeitet hart daran diesen Service auch in Zukunft f\xfcr Sie immer besser zu machen.\n </p>\n <br/>\n <p>\n <strong>D\xfcrfen wir Sie um einen kleinen Gefallen bieten?</strong><br/>\n Es w\xfcrden uns sehr helfen, wenn Sie Ihre positiven Erfahrungen, die Sie bei uns gemacht haben, auch mit anderen\n Menschen durch eine Bewertung bei Google und/oder TrustPilot teilen w\xfcrden. Als ein kleines Start-up haben wir\n kein gro\xdfes Werbebudget und sind besonders auf die Empfehlungen unserer Nutzer angewiesen.\n </p>\n <div fxLayout="row" class="mt-4">\n <a href="https://g.page/Patientenverfuegung-digital/review?gm" target="_blank">\n <button mat-raised-button color="primary" class="mr-2 -ml-1">\n <mat-icon icon iconName="social_media_google" class="ltr:mr-3 rtl:ml-3"></mat-icon>\n <span class="uppercase">bei Google bewerten</span>\n </button>\n </a>\n <a href="https://de.trustpilot.com/evaluate/www.patientenverfuegung.digital" target="_blank">\n <button mat-raised-button color="primary" class="mr-2 -ml-1">\n <mat-icon icon iconName="trustpilot" class="ltr:mr-3 rtl:ml-3"></mat-icon>\n <span class="uppercase">bei TrustPilot bewerten</span>\n </button>\n </a>\n </div>\n <p class="mt-4">\n <strong>Vielen Dank f\xfcr Ihre Unterst\xfczung!</strong>\n </p>\n </div>\n </div>\n\n</mat-dialog-content>\n\n<mat-divider class="-mx-6 text-border"></mat-divider>\n\n<mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">\n <button mat-button color="secondary" (debounceClick)="close()"\n class="mr-2 -ml-1 uppercase">\n <span class="uppercase inline-block sm:hidden md:hidden lg:hidden xl:hidden">schlie\xdfen</span>\n <span\n class="uppercase hidden sm:inline-block md:inline-block lg:inline-block xl:inline-block">Dialog schlie\xdfen</span>\n </button>\n</mat-dialog-actions>\n'},39490:O=>{"use strict";O.exports='<button\n *ngIf="show"\n type="button"\n role="button"\n aria-label="ganz nach unten scrollen"\n tabindex="0"\n class="scrolltop-button"\n #scrollTopButton\n (click)="scrollToTop()"\n [ngClass]="theme"\n [style.left]="position === \'left\' ? \'20px\' : \'\'"\n [style.backgroundColor]="backgroundColor"\n [style.width.px]="size"\n [style.height.px]="size"\n matTooltip="{{tooltip}}">\n <div class="symbol-container">\n <span #ref>\n <ng-content></ng-content>\n </span>\n <mat-icon icon iconName="chevron_down" color="secondary" width="32px" height="32px"\n style="width: 32px; height: 32px; margin-top: 4px;"\n matTooltip="{{tooltip}}"></mat-icon>\n </div>\n</button>\n'},13408:O=>{"use strict";O.exports='<button\n *ngIf="show"\n type="button"\n role="button"\n aria-label="ganz nach oben scrollen"\n tabindex="0"\n class="scrolltop-button"\n #scrollTopButton\n (click)="scrollToTop()"\n [ngClass]="theme"\n [style.left]="position === \'left\' ? \'20px\' : \'\'"\n [style.backgroundColor]="backgroundColor"\n [style.width.px]="size"\n [style.height.px]="size"\n matTooltip="{{tooltip}}">\n <div class="symbol-container">\n <span #ref>\n <ng-content></ng-content>\n </span>\n <mat-icon icon iconName="chevron_up" color="secondary" width="32px" height="32px"\n style="width: 32px; height: 32px; margin-top: 4px;"\n matTooltip="{{tooltip}}"></mat-icon>\n </div>\n</button>\n'},66903:O=>{"use strict";O.exports='<div class="drag-drop-area">\n</div>\n'},83438:O=>{"use strict";O.exports=""},97678:O=>{"use strict";O.exports=".step-label {\n font: 500 16px/24px var(--font);\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: normal;\n}\n\n.status-icon {\n margin-left: -25px;\n}\n\n.options {\n display: flex;\n flex-direction: column;\n margin: 10px;\n}\n\n.options-line {\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n flex-wrap: wrap;\n}\n\n.option {\n background-color: #f2f2f2;\n margin: 10px;\n flex-grow: 1;\n}\n\n.option-selected {\n background-color: #ecefff;\n box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n\n.option-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 5px;\n margin-bottom: 5px;\n}\n\n.option-button-icon {\n margin-top: 5px;\n margin-bottom: 5px;\n height: 40px;\n width: 40px;\n}\n\n.option-button-text {\n white-space: normal;\n line-height: 18px;\n text-align: center;\n max-width: 260px;\n}\n\n.more_information {\n color: #5c77ff;\n padding-left: 10px;\n}\n\n.additional-notes {\n padding-left: 20px;\n}"},47363:O=>{"use strict";O.exports=".close-button {\n height: 24px;\n width: 24px;\n line-height: 0;\n margin-bottom: -24px;\n}\n\n.question {\n font: 500 16px/24px var(--font);\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: normal;\n word-break: keep-all;\n}"}
10,66843:O=>{"use strict";O.exports=".close-button {\n height: 24px;\n width: 24px;\n line-height: 0;\n margin-bottom: -24px;\n}"},28019:O=>{"use strict";O.exports='/* You can add global styles to this file, and also import other style files */\n\n* {\n margin: 0;\n padding: 0;\n font-family: roboto;\n}\n\nbody {\n background: #000;\n}\n\n.cont {\n width: 93%;\n max-width: 350px;\n text-align: center;\n margin: 4% auto;\n padding: 30px 0;\n background: #111;\n color: #EEE;\n border-radius: 5px;\n border: thin solid #444;\n overflow: hidden;\n}\n\nhr {\n margin: 20px;\n border: none;\n border-bottom: thin solid rgba(255, 255, 255, 0.1);\n}\n\ndiv.title {\n font-size: 2em;\n}\n\nh1 span {\n font-weight: 300;\n color: #Fd4;\n}\n\ndiv.stars {\n width: 270px;\n display: inline-block;\n}\n\ninput.star {\n display: none;\n}\n\nlabel.star {\n float: right;\n padding: 10px;\n font-size: 36px;\n color: #444;\n transition: all 0.2s;\n}\n\ninput.star:checked ~ label.star:before {\n content: "\\f005";\n color: #FD4;\n transition: all 0.25s;\n}\n\nlabel.star:hover {\n transform: rotate(-15deg) scale(1.3);\n}\n\nlabel.star:before {\n content: "\\f006";\n font-family: FontAwesome;\n}'},18897:O=>{"use strict";O.exports=".close-button {\n height: 24px;\n width: 24px;\n line-height: 0;\n margin-bottom: -24px;\n}\n\n.question {\n font: 500 16px/24px var(--font);\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: normal;\n word-break: keep-all;\n}"},12605:O=>{"use strict";O.exports="button {\n outline: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.scrolltop-button {\n position: fixed;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: 40px;\n height: 40px;\n right: 20px;\n bottom: 20px;\n cursor: pointer;\n border: none;\n transition: opacity 0.1 linear;\n z-index: 10000;\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n\n.scrolltop-button:hover {\n opacity: 0.92;\n}\n\n.scrolltop-button .symbol-container span {\n font-size: 15px;\n}\n\n.scrolltop-button .symbol-container svg {\n transform: translateY(10%);\n width: 50%;\n vertical-align: baseline;\n}\n\n.scrolltop-button.black {\n background-color: #000000;\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container {\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container span {\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container svg {\n fill: #ffffff;\n}\n\n.scrolltop-button.white {\n background-color: #ffffff;\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container {\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container span {\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container svg {\n fill: #000000;\n}\n\n.scrolltop-button.gray {\n background-color: #212121;\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container {\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container span {\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container svg {\n fill: #fafafa;\n}\n\n.scrolltop-button.grey {\n background-color: #212121;\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container {\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container span {\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container svg {\n fill: #fafafa;\n}\n\n.scrolltop-button.brown {\n background-color: #3e2723;\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container {\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container span {\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container svg {\n fill: #efebe9;\n}\n\n.scrolltop-button.deeporange {\n background-color: #bf360c;\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container {\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container span {\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container svg {\n fill: #fbe9e7;\n}\n\n.scrolltop-button.orange {\n background-color: #ff6d00;\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container {\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container span {\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container svg {\n fill: #fff3e0;\n}\n\n.scrolltop-button.yellow {\n background-color: #ffd600;\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container {\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container span {\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container svg {\n fill: #fffde7;\n}\n\n.scrolltop-button.green {\n background-color: #1b5e20;\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container {\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container span {\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container svg {\n fill: #e8f5e9;\n}\n\n.scrolltop-button.blue {\n background-color: #2962ff;\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container {\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container span {\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container svg {\n fill: #e3f2fd;\n}\n\n.scrolltop-button.purple {\n background-color: #4a148c;\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container {\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container span {\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container svg {\n fill: #f3e5f5;\n}\n\n.scrolltop-button.deeppurple {\n background-color: #311b92;\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container {\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container span {\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container svg {\n fill: #ede7f6;\n}\n\n.scrolltop-button.pink {\n background-color: #880e4f;\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container {\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container span {\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container svg {\n fill: #fce4ec;\n}\n\n.scrolltop-button.red {\n background-color: #b71c1c;\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container {\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container span {\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container svg {\n fill: #ffebee;\n}\n\n.scrolltop-button.indigo {\n background-color: #1a237e;
10\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container {\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container span {\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container svg {\n fill: #e8eaf6;\n}\n\n.scrolltop-button.lightblue {\n background-color: #01579b;\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container {\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container span {\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container svg {\n fill: #e1f5fe;\n}\n\n.scrolltop-button.cyan {\n background-color: #006064;\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container {\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container span {\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container svg {\n fill: #e0f7fa;\n}\n\n.scrolltop-button.teal {\n background-color: #004d40;\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container {\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container span {\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container svg {\n fill: #e0f2f1;\n}\n\n.scrolltop-button.lightgreen {\n background-color: #33691e;\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container {\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container span {\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container svg {\n fill: #f1f8e9;\n}\n\n.scrolltop-button.lime {\n background-color: #827717;\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container {\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container span {\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container svg {\n fill: #f9fbe7;\n}\n\n.scrolltop-button.amber {\n background-color: #ff6f00;\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container {\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container span {\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container svg {\n fill: #fff8e1;\n}\n\n.scrolltop-button.bluegrey {\n background-color: #263238;\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container {\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container span {\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container svg {\n fill: #eceff1;\n}"},16520:O=>{"use strict";O.exports="button {\n outline: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.scrolltop-button {\n position: fixed;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: 40px;\n height: 40px;\n right: 20px;\n top: calc(20px + var(--toolbar-height));\n cursor: pointer;\n border: none;\n transition: opacity 0.1 linear;\n z-index: 10000;\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n transform: translate3d(0, 0, 0);\n}\n\n.scrolltop-button:hover {\n opacity: 0.92;\n}\n\n.scrolltop-button .symbol-container span {\n font-size: 15px;\n}\n\n.scrolltop-button .symbol-container svg {\n transform: translateY(10%);\n width: 50%;\n vertical-align: baseline;\n}\n\n.scrolltop-button.black {\n background-color: #000000;\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container {\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container span {\n color: #ffffff;\n}\n\n.scrolltop-button.black .symbol-container svg {\n fill: #ffffff;\n}\n\n.scrolltop-button.white {\n background-color: #ffffff;\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container {\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container span {\n color: #000000;\n}\n\n.scrolltop-button.white .symbol-container svg {\n fill: #000000;\n}\n\n.scrolltop-button.gray {\n background-color: #212121;\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container {\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container span {\n color: #fafafa;\n}\n\n.scrolltop-button.gray .symbol-container svg {\n fill: #fafafa;\n}\n\n.scrolltop-button.grey {\n background-color: #212121;\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container {\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container span {\n color: #fafafa;\n}\n\n.scrolltop-button.grey .symbol-container svg {\n fill: #fafafa;\n}\n\n.scrolltop-button.brown {\n background-color: #3e2723;\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container {\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container span {\n color: #efebe9;\n}\n\n.scrolltop-button.brown .symbol-container svg {\n fill: #efebe9;\n}\n\n.scrolltop-button.deeporange {\n background-color: #bf360c;\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container {\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container span {\n color: #fbe9e7;\n}\n\n.scrolltop-button.deeporange .symbol-container svg {\n fill: #fbe9e7;\n}\n\n.scrolltop-button.orange {\n background-color: #ff6d00;\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container {\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container span {\n color: #fff3e0;\n}\n\n.scrolltop-button.orange .symbol-container svg {\n fill: #fff3e0;\n}\n\n.scrolltop-button.yellow {\n background-color: #ffd600;\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container {\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container span {\n color: #fffde7;\n}\n\n.scrolltop-button.yellow .symbol-container svg {\n fill: #fffde7;\n}\n\n.scrolltop-button.green {\n background-color: #1b5e20;\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container {\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container span {\n color: #e8f5e9;\n}\n\n.scrolltop-button.green .symbol-container svg {\n fill: #e8f5e9;\n}\n\n.scrolltop-button.blue {\n background-color: #2962ff;\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container {\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container span {\n color: #e3f2fd;\n}\n\n.scrolltop-button.blue .symbol-container svg {\n fill: #e3f2fd;\n}\n\n.scrolltop-button.purple {\n background-color: #4a148c;\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container {\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container span {\n color: #f3e5f5;\n}\n\n.scrolltop-button.purple .symbol-container svg {\n fill: #f3e5f5;\n}\n\n.scrolltop-button.deeppurple {\n background-color: #311b92;\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container {\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container span {\n color: #ede7f6;\n}\n\n.scrolltop-button.deeppurple .symbol-container svg {\n fill: #ede7f6;\n}\n\n.scrolltop-button.pink {\n background-color: #880e4f;\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container {\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container span {\n color: #fce4ec;\n}\n\n.scrolltop-button.pink .symbol-container svg {\n fill: #fce4ec;\n}\n\n.scrolltop-button.red {\n background-color: #b71c1c;\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container {\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container span {\n color: #ffebee;\n}\n\n.scrolltop-button.red .symbol-container svg {\n fill: #ffebee;\n}\n\n.scrolltop-button.indigo {\n background-color: #1a237e;
10\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container {\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container span {\n color: #e8eaf6;\n}\n\n.scrolltop-button.indigo .symbol-container svg {\n fill: #e8eaf6;\n}\n\n.scrolltop-button.lightblue {\n background-color: #01579b;\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container {\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container span {\n color: #e1f5fe;\n}\n\n.scrolltop-button.lightblue .symbol-container svg {\n fill: #e1f5fe;\n}\n\n.scrolltop-button.cyan {\n background-color: #006064;\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container {\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container span {\n color: #e0f7fa;\n}\n\n.scrolltop-button.cyan .symbol-container svg {\n fill: #e0f7fa;\n}\n\n.scrolltop-button.teal {\n background-color: #004d40;\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container {\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container span {\n color: #e0f2f1;\n}\n\n.scrolltop-button.teal .symbol-container svg {\n fill: #e0f2f1;\n}\n\n.scrolltop-button.lightgreen {\n background-color: #33691e;\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container {\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container span {\n color: #f1f8e9;\n}\n\n.scrolltop-button.lightgreen .symbol-container svg {\n fill: #f1f8e9;\n}\n\n.scrolltop-button.lime {\n background-color: #827717;\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container {\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container span {\n color: #f9fbe7;\n}\n\n.scrolltop-button.lime .symbol-container svg {\n fill: #f9fbe7;\n}\n\n.scrolltop-button.amber {\n background-color: #ff6f00;\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container {\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container span {\n color: #fff8e1;\n}\n\n.scrolltop-button.amber .symbol-container svg {\n fill: #fff8e1;\n}\n\n.scrolltop-button.bluegrey {\n background-color: #263238;\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container {\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container span {\n color: #eceff1;\n}\n\n.scrolltop-button.bluegrey .symbol-container svg {\n fill: #eceff1;\n}"},77020:()=>{},65385:(O,v,e)=>{"use strict";e.d(v,{_t:()=>bt,bA:()=>Oe,EA:()=>Ne});var o=e(89724),n=e(11048),l=e(6344),a=e(92541),d=e(47188),u=e(41334),c=e(33637),t=e(26561);function i(ge){const{subscriber:k,counter:W,period:q}=ge;k.next(W),this.schedule({subscriber:k,counter:W+1,period:q},q)}var s=e(79765),r=e(13464),f=e(7329),g=e(66682),A=e(46782),w=e(39761),U=e(88002),F=e(15257),y=e(68307),S=e(43190),x=e(62156),L=e(497); 11/** 12 * @license 13 * Copyright Google LLC All Rights Reserved. 14 * 15 * Use of this source code is governed by an MIT-style license that can be 16 * found in the LICENSE file at https://angular.io/license 17 */function H(ge,k,W){for(let q in k)if(k.hasOwnProperty(q)){const re=k[q];re?ge.setProperty(q,re,(null==W?void 0:W.has(q))?"important":""):ge.removeProperty(q)}return ge}function K(ge,k){const W=k?"":"none";H(ge.style,{"touch-action":k?"":"none","-webkit-user-drag":k?"":"none","-webkit-tap-highlight-color":k?"":"transparent","user-select":W,"-ms-user-select":W,"-webkit-user-select":W,"-moz-user-select":W})}function N(ge,k,W){H(ge.style,{position:k?"":"fixed",top:k?"":"0",opacity:k?"":"0",left:k?"":"-999em"},W)}function R(ge,k){return k&&"none"!=k?ge+" "+k:ge} 18/** 19 * @license 20 * Copyright Google LLC All Rights Reserved. 21 * 22 * Use of this source code is governed by an MIT-style license that can be 23 * found in the LICENSE file at https://angular.io/license 24 */function _(ge){const k=ge.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ge)*k}function b(ge,k){return ge.getPropertyValue(k).split(",").map(q=>q.trim())} 25/** 26 * @license 27 * Copyright Google LLC All Rights Reserved. 28 * 29 * Use of this source code is governed by an MIT-style license that can be 30 * found in the LICENSE file at https://angular.io/license 31 */function C(ge){const k=ge.getBoundingClientRect();return{top:k.top,right:k.right,bottom:k.bottom,left:k.left,width:k.width,height:k.height,x:k.x,y:k.y}}function D(ge,k,W){const{top:q,bottom:re,left:ue,right:de}=ge;return W>=q&&W<=re&&k>=ue&&k<=de}function I(ge,k,W){ge.top+=k,ge.bottom=ge.top+ge.height,ge.left+=W,ge.right=ge.left+ge.width}function P(ge,k,W,q){const{top:re,right:ue,bottom:de,left:ye,width:Ae,height:Ie}=ge,$e=Ae*k,st=Ie*k;return q>re-st&&q<de+st&&W>ye-$e&&W<ue+$e} 32/** 33 * @license 34 * Copyright Google LLC All Rights Reserved. 35 * 36 * Use of this source code is governed by an MIT-style license that can be 37 * found in the LICENSE file at https://angular.io/license 38 */class B{constructor(k,W){this._document=k,this._viewportRuler
38=W,this.positions=new Map}clear(){this.positions.clear()}cache(k){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),k.forEach(W=>{this.positions.set(W,{scrollPosition:{top:W.scrollTop,left:W.scrollLeft},clientRect:C(W)})})}handleScroll(k){const W=(0,l.sA)(k),q=this.positions.get(W);if(!q)return null;const re=q.scrollPosition;let ue,de;if(W===this._document){const Ie=this._viewportRuler.getViewportScrollPosition();ue=Ie.top,de=Ie.left}else ue=W.scrollTop,de=W.scrollLeft;const ye=re.top-ue,Ae=re.left-de;return this.positions.forEach((Ie,$e)=>{Ie.clientRect&&W!==$e&&W.contains($e)&&I(Ie.clientRect,ye,Ae)}),re.top=ue,re.left=de,{top:ye,left:Ae}}} 39/** 40 * @license 41 * Copyright Google LLC All Rights Reserved. 42 * 43 * Use of this source code is governed by an MIT-style license that can be 44 * found in the LICENSE file at https://angular.io/license 45 */function p(ge){const k=ge.cloneNode(!0),W=k.querySelectorAll("[id]"),q=ge.nodeName.toLowerCase();k.removeAttribute("id");for(let re=0;re<W.length;re++)W[re].removeAttribute("id");return"canvas"===q?ne(ge,k):("input"===q||"select"===q||"textarea"===q)&&ee(ge,k),Y("canvas",ge,k,ne),Y("input, textarea, select",ge,k,ee),k}function Y(ge,k,W,q){const re=k.querySelectorAll(ge);if(re.length){const ue=W.querySelectorAll(ge);for(let de=0;de<re.length;de++)q(re[de],ue[de])}}let j=0;function ee(ge,k){"file"!==k.type&&(k.value=ge.value),"radio"===k.type&&k.name&&(k.name=`mat-clone-${k.name}-${j++}`)}function ne(ge,k){const W=k.getContext("2d");if(W)try{W.drawImage(ge,0,0)}catch(q){}} 46/** 47 * @license 48 * Copyright Google LLC All Rights Reserved. 49 * 50 * Use of this source code is governed by an MIT-style license that can be 51 * found in the LICENSE file at https://angular.io/license 52 */const se=(0,l.i$)({passive:!0}),le=(0,l.i$)({passive:!1}),ve=new Set(["position"]);class z{constructor(k,W,q,re,ue,de){this._config=W,this._document=q,this._ngZone=re,this._viewportRuler=ue,this._dragDropRegistry=de,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new s.xQ,this._pointerMoveSubscription=r.w.EMPTY,this._pointerUpSubscription=r.w.EMPTY,this._scrollSubscription=r.w.EMPTY,this._resizeSubscription=r.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new s.xQ,this.started=new s.xQ,this.released=new s.xQ,this.ended=new s.xQ,this.entered=new s.xQ,this.exited=new s.xQ,this.dropped=new s.xQ,this.moved=this._moveEvents,this._pointerDown=ye=>{if(this.beforeStarted.next(),this._handles.length){const Ae=this._handles.find(Ie=>ye.target&&(ye.target===Ie||Ie.contains(ye.target)));Ae&&!this._disabledHandles.has(Ae)&&!this.disabled&&this._initializeDragSequence(Ae,ye)}else this.disabled||this._initializeDragSequence(this._rootElement,ye)},this._pointerMove=ye=>{const Ae=this._getPointerPositionOnPage(ye);if(!this._hasStartedDragging){if(Math.abs(Ae.x-this._pickupPositionOnPage.x)+Math.abs(Ae.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Q=Date.now()>=this._dragStartTime+this._getDragStartDelay(ye),G=this._dropContainer;if(!Q)return void this._endDragSequence(ye);(!G||!G.isDragging()&&!G.isReceiving())&&(ye.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ye)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),ye.preventDefault();const Ie=this._getConstrainedPointerPosition(Ae);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ae,this._updatePointerDirectionDelta(Ie),this._dropContainer)this._updateActiveDropContainer(Ie,Ae);else{const $e=this._activeTransform;$e.x=Ie.x-this._pickupPositionOnPage.x+this._passiveTransform.x,$e.y=Ie.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform($e.x,$e.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Ie,event:ye,distance:this._getDragDistance(Ie),delta:this._pointerDirectionDelta})})},this._pointerUp=ye=>{this._endDragSequence(ye)},this.withRootElement(k).withParent(W.parentDragRef||null),this._parentPositions=new B(q,ue),de.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(k){const W=(0,a.Ig)(k);W!==this._disabled&&(this._disabled=W,this._toggleNativeDragInteractions(),this._handles.forEac
52h(q=>K(q,W)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(k){this._handles=k.map(q=>(0,a.fI)(q)),this._handles.forEach(q=>K(q,this.disabled)),this._toggleNativeDragInteractions();const W=new Set;return this._disabledHandles.forEach(q=>{this._handles.indexOf(q)>-1&&W.add(q)}),this._disabledHandles=W,this}withPreviewTemplate(k){return this._previewTemplate=k,this}withPlaceholderTemplate(k){return this._placeholderTemplate=k,this}withRootElement(k){const W=(0,a.fI)(k);return W!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{W.addEventListener("mousedown",this._pointerDown,le),W.addEventListener("touchstart",this._pointerDown,se)}),this._initialTransform=void 0,this._rootElement=W),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(k){return this._boundaryElement=k?(0,a.fI)(k):null,this._resizeSubscription.unsubscribe(),k&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(k){return this._parentDragRef=k,this}dispose(){var k,W;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(k=this._rootElement)||void 0===k||k.remove()),null===(W=this._anchor)||void 0===W||W.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(k){!this._disabledHandles.has(k)&&this._handles.indexOf(k)>-1&&(this._disabledHandles.add(k),K(k,!0))}enableHandle(k){this._disabledHandles.has(k)&&(this._disabledHandles.delete(k),K(k,this.disabled))}withDirection(k){return this._direction=k,this}_withDropContainer(k){this._dropContainer=k}getFreeDragPosition(){const k=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:k.x,y:k.y}}setFreeDragPosition(k){return this._activeTransform={x:0,y:0},this._passiveTransform.x=k.x,this._passiveTransform.y=k.y,this._dropContainer||this._applyRootElementTransform(k.x,k.y),this}withPreviewContainer(k){return this._previewContainer=k,this}_sortFromLastPointerPosition(){const k=this._lastKnownPointerPosition;k&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(k),k)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var k,W;null===(k=this._preview)||void 0===k||k.remove(),null===(W=this._previewRef)||void 0===W||W.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var k,W;null===(k=this._placeholder)||void 0===k||k.remove(),null===(W=this._placeholderRef)||void 0===W||W.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(k){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(k),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const W=this._getPointerPositionOnPage(k);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(W),dropPoint:W})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
52_startDragSequence(k){ce(k)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const W=this._dropContainer;if(W){const q=this._rootElement,re=q.parentNode,ue=this._placeholder=this._createPlaceholderElement(),de=this._anchor=this._anchor||this._document.createComment(""),ye=this._getShadowRoot();re.insertBefore(de,q),this._initialTransform=q.style.transform||"",this._preview=this._createPreviewElement(),N(q,!1,ve),this._document.body.appendChild(re.replaceChild(ue,q)),this._getPreviewInsertionPoint(re,ye).appendChild(this._preview),this.started.next({source:this}),W.start(),this._initialContainer=W,this._initialIndex=W.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(W?W.getScrollableParents():[])}_initializeDragSequence(k,W){this._parentDragRef&&W.stopPropagation();const q=this.isDragging(),re=ce(W),ue=!re&&0!==W.button,de=this._rootElement,ye=(0,l.sA)(W),Ae=!re&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Ie=re?(0,d.yG)(W):(0,d.X6)(W);if(ye&&ye.draggable&&"mousedown"===W.type&&W.preventDefault(),q||ue||Ae||Ie)return;if(this._handles.length){const J=de.style;this._rootElementTapHighlight=J.webkitTapHighlightColor||"",J.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(J=>this._updateOnScroll(J)),this._boundaryElement&&(this._boundaryRect=C(this._boundaryElement));const $e=this._previewTemplate;this._pickupPositionInElement=$e&&$e.template&&!$e.matchSize?{x:0,y:0}:this._getPointerPositionInElement(k,W);const st=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(W);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:st.x,y:st.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,W)}_cleanupDragArtifacts(k){N(this._rootElement,!0,ve),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const W=this._dropContainer,q=W.getItemIndex(this),re=this._getPointerPositionOnPage(k),ue=this._getDragDistance(re),de=W._isOverContainer(re.x,re.y);this.ended.next({source:this,distance:ue,dropPoint:re}),this.dropped.next({item:this,currentIndex:q,previousIndex:this._initialIndex,container:W,previousContainer:this._initialContainer,isPointerOverContainer:de,distance:ue,dropPoint:re}),W.drop(this,q,this._initialIndex,this._initialContainer,de,ue,re),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:k,y:W},{x:q,y:re}){let ue=this._initialContainer._getSiblingContainerFromPosition(this,k,W);!ue&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(k,W)&&(ue=this._initialContainer),ue&&ue!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ue,this._dropContainer.enter(this,k,W,ue===this._initialContainer&&ue.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ue,currentIndex:ue.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(q,re),this._dropContainer._sortItem(this,k,W,this._pointerDirectionDelta),this._applyPreviewTransform(k-this._pickupPositionInElement.x,W-this._pickupPositionInElement.y))}_createPreviewElement(){const k=this._previewTemplate,W=this.previewClass,q=k?k.template:null;let re;if(q&&k){const ue=k.matchSize?this._rootElement.getBoundingClientRect():null,de=k.viewContainer.createEmbeddedView(q,k.context);de.detectChanges(),re=we(de,this._document),this._previewRef=de,k.matchSize?Fe(re,ue):re.style.transform=te(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const ue=this._rootElement;re=p(ue),Fe(re,ue.getBoundingClientRect()),this._initialTransform&&(re.style.transform=this._initialTransform)}return H(re.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ve),K(re,!1),re.classList.add("cdk-drag-preview"),re.setAttribute("dir",this._direction),W&&(Array.isArray(W)?W.forEach(ue=>re.classList.add(ue)):re.classList.add(W)),re}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const k=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(k.left,k.top);const W=function(ge){const k=getComputedStyle(ge),W=b(k,"transition-property"),q=W.find(ye=>"transform"===ye||"all"===ye);if(!q)return 0;const re=W.indexOf(q),ue=b(k,"transition-duration"),de=b(k,"transition-delay");return _(ue[re])+_(de[re])}(this._preview);return 0===W?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(q=>{const re=de=>{var ye;(!de||(0,l.sA)(de)===this._preview&&"transform"===de.propertyName)&&(null===(ye=this._preview)||void 0===ye||ye.removeEventListener("transitionend",re),q(),clearTimeout(ue))},ue=setTimeout(re,1.5*W);this._preview.addEventListener("transitionend",re)}))}_createPlaceholderElement(){const k=this._placeholderTemplate,W=k?k.template:null;let q;return W?(this._placeholderRef=k.viewContainer.createEmbeddedView(W,k.context),this._placeholderRef.detectChanges(),q=we(this._placeholderRef,this._document)):q=p(this._rootElement),q.classList.add("cdk-drag-placeholder"),q}_getPointerPositionInElement(k,W){const q=this._rootElement.getBoundingClientRect(),re=k===this._rootElement?null:k,ue=re?re.getBoundingClientRect():q,de=ce(W)?W.targetTouches[0]:W,ye=this._getViewportScrollPosition(),Ae=de.pageX-ue.left-ye.left,Ie=de.pageY-ue.top-ye.top;return{x:ue.left-q.left+Ae,y:ue.top-q.top+Ie}}_getPointerPositionOnPage(k){const W=this._getViewportScrollPosition(),q=ce(k)?k.touches[0]||k.changedTouches[0]||{pageX:0,pageY:0}:k,re=q.pageX-W.left,ue=q.pageY-W.top;if(this._ownerSVGElement){const de=this._ownerSVGElement.getScreenCTM();if(de){const ye=this._ownerSVGElement.createSVGPoint();return ye.x=re,ye.y=ue,ye.matrixTransform(de.inverse())}}return{x:re,y:ue}}_getConstrainedPointerPosition(k){const W=this._dropContainer?this._dropContainer.lockAxis:null;let{x:q,y:re}=this.constrainPosition?this.constrainPosition(k,this):k;if("x"===this.lockAxis||"x"===W?re=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===W)&&(q=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ue,y:de}=this._pickupPositionInElement,ye=this._boundaryRect,Ae=this._previewRect,Ie=ye.top+de,$e=ye.bottom-(Ae.height-de);q=me(q,ye.left+ue,ye.right-(Ae.width-ue)),re=me(re,Ie,$e)}return{x:q,y:re}}_updatePointerDirectionDelta(k){const{x:W,y:q}=k,re=this._pointerDirectionDelta,ue=this._pointerPositionAtLastDirectionChange,de
52=Math.abs(W-ue.x),ye=Math.abs(q-ue.y);return de>this._config.pointerDirectionChangeThreshold&&(re.x=W>ue.x?1:-1,ue.x=W),ye>this._config.pointerDirectionChangeThreshold&&(re.y=q>ue.y?1:-1,ue.y=q),re}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const k=this._handles.length>0||!this.isDragging();k!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=k,K(this._rootElement,k))}_removeRootElementListeners(k){k.removeEventListener("mousedown",this._pointerDown,le),k.removeEventListener("touchstart",this._pointerDown,se)}_applyRootElementTransform(k,W){const q=te(k,W),re=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=re.transform&&"none"!=re.transform?re.transform:""),re.transform=R(q,this._initialTransform)}_applyPreviewTransform(k,W){var q;const re=(null===(q=this._previewTemplate)||void 0===q?void 0:q.template)?void 0:this._initialTransform,ue=te(k,W);this._preview.style.transform=R(ue,re)}_getDragDistance(k){const W=this._pickupPositionOnPage;return W?{x:k.x-W.x,y:k.y-W.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:k,y:W}=this._passiveTransform;if(0===k&&0===W||this.isDragging()||!this._boundaryElement)return;const q=this._boundaryElement.getBoundingClientRect(),re=this._rootElement.getBoundingClientRect();if(0===q.width&&0===q.height||0===re.width&&0===re.height)return;const ue=q.left-re.left,de=re.right-q.right,ye=q.top-re.top,Ae=re.bottom-q.bottom;q.width>re.width?(ue>0&&(k+=ue),de>0&&(k-=de)):k=0,q.height>re.height?(ye>0&&(W+=ye),Ae>0&&(W-=Ae)):W=0,(k!==this._passiveTransform.x||W!==this._passiveTransform.y)&&this.setFreeDragPosition({y:W,x:k})}_getDragStartDelay(k){const W=this.dragStartDelay;return"number"==typeof W?W:ce(k)?W.touch:W?W.mouse:0}_updateOnScroll(k){const W=this._parentPositions.handleScroll(k);if(W){const q=(0,l.sA)(k);this._boundaryRect&&q!==this._boundaryElement&&q.contains(this._boundaryElement)&&I(this._boundaryRect,W.top,W.left),this._pickupPositionOnPage.x+=W.left,this._pickupPositionOnPage.y+=W.top,this._dropContainer||(this._activeTransform.x-=W.left,this._activeTransform.y-=W.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const k=this._parentPositions.positions.get(this._document);return k?k.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,l.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(k,W){const q=this._previewContainer||"global";if("parent"===q)return k;if("global"===q){const re=this._document;return W||re.fullscreenElement||re.webkitFullscreenElement||re.mozFullScreenElement||re.msFullscreenElement||re.body}return(0,a.fI)(q)}}function te(ge,k){return`translate3d(${Math.round(ge)}px, ${Math.round(k)}px, 0)`}function me(ge,k,W){return Math.max(k,Math.min(W,ge))}function ce(ge){return"t"===ge.type[0]}function we(ge,k){const W=ge.rootNodes;if(1===W.length&&W[0].nodeType===k.ELEMENT_NODE)return W[0];const q=k.createElement("div");return W.forEach(re=>q.appendChild(re)),q}function Fe(ge,k){ge.style.width=`${k.width}px`,ge.style.height=`${k.height}px`,ge.style.transform=te(k.left,k.top) 53/** 54 * @license 55 * Copyright Google LLC All Rights Reserved. 56 * 57 * Use of this source code is governed by an MIT-style license that can be 58 * found in the LICENSE file at https://angular.io/license 59 */}function Oe(ge,k,W){const q=Ee(k,ge.length-1),re=Ee(W,ge.length-1);if(q===re)return;const ue=ge[q],de=re<q?-1:1;for(let ye=q;ye!==re;ye+=de)ge[ye]=ge[ye+de];ge[re]=ue}function Ne(ge,k,W,q){const re=Ee(W,ge.length-1),ue=Ee(q,k.length);ge.length&&k.splice(ue,0,ge.splice(re,1)[0])}function Ee(ge,k){return Math.max(0,Math.min(k,ge))} 60/** 61 * @license 62 * Copyright Google LLC All Rights Reserved. 63 * 64 * Use of this source code is governed by an MIT-style license that can be 65 * found in the LICENSE file at https://angular.io/license 66 */class Be{constructor(k,W,q,re,ue){this._dragDropRegistry=W,this._ngZone=re,this._viewportRuler
66=ue,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new s.xQ,this.entered=new s.xQ,this.exited=new s.xQ,this.dropped=new s.xQ,this.sorted=new s.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=r.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new s.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(ge=0,k=c.P){return(!(0,t.k)(ge)||ge<0)&&(ge=0),(!k||"function"!=typeof k.schedule)&&(k=c.P),new u.y(W=>(W.add(k.schedule(i,ge,{subscriber:W,counter:0,period:ge})),W))}(0,f.Z).pipe((0,A.R)(this._stopScrollTimers)).subscribe(()=>{const de=this._scrollNode,ye=this.autoScrollStep;1===this._verticalScrollDirection?de.scrollBy(0,-ye):2===this._verticalScrollDirection&&de.scrollBy(0,ye),1===this._horizontalScrollDirection?de.scrollBy(-ye,0):2===this._horizontalScrollDirection&&de.scrollBy(ye,0)})},this.element=(0,a.fI)(k),this._document=q,this.withScrollableParents([this.element]),W.registerDropContainer(this),this._parentPositions=new B(q,ue)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(k,W,q,re){let ue;this._draggingStarted(),null==re?(ue=this.sortingDisabled?this._draggables.indexOf(k):-1,-1===ue&&(ue=this._getItemIndexFromPointerPosition(k,W,q))):ue=re;const de=this._activeDraggables,ye=de.indexOf(k),Ae=k.getPlaceholderElement();let Ie=de[ue];if(Ie===k&&(Ie=de[ue+1]),!Ie&&(null==ue||-1===ue||ue<de.length-1)&&this._shouldEnterAsFirstChild(W,q)&&(Ie=de[0]),ye>-1&&de.splice(ye,1),Ie&&!this._dragDropRegistry.isDragging(Ie)){const $e=Ie.getRootElement();$e.parentElement.insertBefore(Ae,$e),de.splice(ue,0,k)}else(0,a.fI)(this.element).appendChild(Ae),de.push(k);Ae.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:k,container:this,currentIndex:this.getItemIndex(k)})}exit(k){this._reset(),this.exited.next({item:k,container:this})}drop(k,W,q,re,ue,de,ye){this._reset(),this.dropped.next({item:k,currentIndex:W,previousIndex:q,container:this,previousContainer:re,isPointerOverContainer:ue,distance:de,dropPoint:ye})}withItems(k){const W=this._draggables;return this._draggables=k,k.forEach(q=>q._withDropContainer(this)),this.isDragging()&&(W.filter(re=>re.isDragging()).every(re=>-1===k.indexOf(re))?this._reset():this._cacheItems()),this}withDirection(k){return this._direction=k,this}connectedTo(k){return this._siblings=k.slice(),this}withOrientation(k){return this._orientation=k,this}withScrollableParents(k){const W=(0,a.fI)(this.element);return this._scrollableElements=-1===k.indexOf(W)?[W,...k]:k.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(k){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(q=>q.drag===k):this._draggables.indexOf(k)}isReceiving(){return this._activeSiblings.size>0}_sortItem(k,W,q,re){if(this.sortingDisabled||!this._clientRect||!P(this._clientRect,.05,W,q))return;const ue=this._itemPositions,de=this._getItemIndexFromPointerPosition(k,W,q,re);if(-1===de&&ue.length>0)return;const ye="horizontal"===this._orientation,Ae=ue.findIndex(pe=>pe.drag===k),Ie=ue[de],$e=ue[Ae].clientRect,st=Ie.clientRect,J=Ae>de?1:-1,Q=this._getItemOffsetPx($e,st,J),G=this._getSiblingOffsetPx(Ae,ue,J),Z=ue.slice();Oe(ue,Ae,de),this.sorted.next({previousIndex:Ae,currentIndex:de,container:this,item:k}),ue.forEach((pe,_e)=>{if(Z[_e]===pe)return;const ke=pe.drag===k,We=ke?Q:G,Xe=ke?k.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=We,ye?(Xe.style.transform=R(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),I(pe.clientRect,0,We)):(Xe.style.transform=R(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),I(pe.clientRect,We,0))}),this._previousSwap.overlaps=D(st,W,q),this._previousSwap.drag=Ie.drag,this._previousSwap.delta=ye?re.x:re.y}_startScrollingIfNecessary(k,W){if(this.autoScrollDisabled)return;let q,re=0,ue=0;if(this._parentPositions.positions.forEach((de,ye)=>{ye===this._document||!de.clientRect||q||P(de.clientRect,.05,k,W)&&([re,ue]=function(ge,k,W,q){const re=ze(k,q),ue=Pe(k,W);let de=0,ye=0;if(re){const Ae=ge.scrollTop;1===re?Ae>
660&&(de=1):ge.scrollHeight-Ae>ge.clientHeight&&(de=2)}if(ue){const Ae=ge.scrollLeft;1===ue?Ae>0&&(ye=1):ge.scrollWidth-Ae>ge.clientWidth&&(ye=2)}return[de,ye]} 67/** 68 * @license 69 * Copyright Google LLC All Rights Reserved. 70 * 71 * Use of this source code is governed by an MIT-style license that can be 72 * found in the LICENSE file at https://angular.io/license 73 */(ye,de.clientRect,k,W),(re||ue)&&(q=ye))}),!re&&!ue){const{width:de,height:ye}=this._viewportRuler.getViewportSize(),Ae={width:de,height:ye,top:0,right:de,bottom:ye,left:0};re=ze(Ae,W),ue=Pe(Ae,k),q=window}q&&(re!==this._verticalScrollDirection||ue!==this._horizontalScrollDirection||q!==this._scrollNode)&&(this._verticalScrollDirection=re,this._horizontalScrollDirection=ue,this._scrollNode=q,(re||ue)&&q?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const k=(0,a.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=k.msScrollSnapType||k.scrollSnapType||"",k.scrollSnapType=k.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const k=(0,a.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(k).clientRect}_cacheItemPositions(){const k="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(W=>{const q=W.getVisibleElement();return{drag:W,offset:0,initialTransform:q.style.transform||"",clientRect:C(q)}}).sort((W,q)=>k?W.clientRect.left-q.clientRect.left:W.clientRect.top-q.clientRect.top)}_reset(){this._isDragging=!1;const k=(0,a.fI)(this.element).style;k.scrollSnapType=k.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(W=>{var q;const re=W.getRootElement();if(re){const ue=null===(q=this._itemPositions.find(de=>de.drag===W))||void 0===q?void 0:q.initialTransform;re.style.transform=ue||""}}),this._siblings.forEach(W=>W._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(k,W,q){const re="horizontal"===this._orientation,ue=W[k].clientRect,de=W[k+-1*q];let ye=ue[re?"width":"height"]*q;if(de){const Ae=re?"left":"top",Ie=re?"right":"bottom";-1===q?ye-=de.clientRect[Ae]-ue[Ie]:ye+=ue[Ae]-de.clientRect[Ie]}return ye}_getItemOffsetPx(k,W,q){const re="horizontal"===this._orientation;let ue=re?W.left-k.left:W.top-k.top;return-1===q&&(ue+=re?W.width-k.width:W.height-k.height),ue}_shouldEnterAsFirstChild(k,W){if(!this._activeDraggables.length)return!1;const q=this._itemPositions,re="horizontal"===this._orientation;if(q[0].drag!==this._activeDraggables[0]){const de=q[q.length-1].clientRect;return re?k>=de.right:W>=de.bottom}{const de=q[0].clientRect;return re?k<=de.left:W<=de.top}}_getItemIndexFromPointerPosition(k,W,q,re){const ue="horizontal"===this._orientation,de=this._itemPositions.findIndex(({drag:ye,clientRect:Ae})=>{if(ye===k)return!1;if(re){const Ie=ue?re.x:re.y;if(ye===this._previousSwap.drag&&this._previousSwap.overlaps&&Ie===this._previousSwap.delta)return!1}return ue?W>=Math.floor(Ae.left)&&W<Math.floor(Ae.right):q>=Math.floor(Ae.top)&&q<Math.floor(Ae.bottom)});return-1!==de&&this.sortPredicate(de,k,this)?de:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(k,W){return null!=this._clientRect&&D(this._clientRect,k,W)}_getSiblingContainerFromPosition(k,W,q){return this._siblings.find(re=>re._canReceive(k,W,q))}_canReceive(k,W,q){if(!this._clientRect||!D(this._clientRect,W,q)||!this.enterPredicate(k,this))return!1;const re=this._getShadowRoot().elementFromPoint(W,q);if(!re)return!1;const ue=(0,a.fI)(this.element);return re===ue||ue.contains(re)}_startReceiving(k,W){const q=this._activeSiblings;!q.has(k)&&W.every(re=>this.enterPredicate(re,this)||this._draggables.indexOf(re)>-1)&&(q.add(k),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(k){this._activeSiblings.delete(k),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>{if(this.isDragging()){const W=this._parentPositions.handleScroll(k);W&&(this._itemPositions.forEach(({clientRect:q})=>{I(q,W.top,W.left)}),this._itemPositions.forEach(({drag:q})=>{this._dragDropRegistry.isDragging(q)&&q._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const k=(0,l.kV)((0,a.fI)(this.element));this._cachedShadowRoot=k||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const k=this._activeDraggables.filter(W=>W.isDragging());
73this._siblings.forEach(W=>W._startReceiving(this,k))}}function ze(ge,k){const{top:W,bottom:q,height:re}=ge,ue=.05*re;return k>=W-ue&&k<=W+ue?1:k>=q-ue&&k<=q+ue?2:0}function Pe(ge,k){const{left:W,right:q,width:re}=ge,ue=.05*re;return k>=W-ue&&k<=W+ue?1:k>=q-ue&&k<=q+ue?2:0}const Le=(0,l.i$)({passive:!1,capture:!0});class He{constructor(k,W){this._ngZone=k,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=q=>q.isDragging(),this.pointerMove=new s.xQ,this.pointerUp=new s.xQ,this.scroll=new s.xQ,this._preventDefaultWhileDragging=q=>{this._activeDragInstances.length>0&&q.preventDefault()},this._persistentTouchmoveListener=q=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&q.preventDefault(),this.pointerMove.next(q))},this._document=W}registerDropContainer(k){this._dropInstances.has(k)||this._dropInstances.add(k)}registerDragItem(k){this._dragInstances.add(k),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Le)})}removeDropContainer(k){this._dropInstances.delete(k)}removeDragItem(k){this._dragInstances.delete(k),this.stopDragging(k),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Le)}startDragging(k,W){if(!(this._activeDragInstances.indexOf(k)>-1)&&(this._activeDragInstances.push(k),1===this._activeDragInstances.length)){const q=W.type.startsWith("touch");this._globalListeners.set(q?"touchend":"mouseup",{handler:re=>this.pointerUp.next(re),options:!0}).set("scroll",{handler:re=>this.scroll.next(re),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Le}),q||this._globalListeners.set("mousemove",{handler:re=>this.pointerMove.next(re),options:Le}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((re,ue)=>{this._document.addEventListener(ue,re.handler,re.options)})})}}stopDragging(k){const W=this._activeDragInstances.indexOf(k);W>-1&&(this._activeDragInstances.splice(W,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(k){return this._activeDragInstances.indexOf(k)>-1}scrolled(k){const W=[this.scroll];return k&&k!==this._document&&W.push(new u.y(q=>this._ngZone.runOutsideAngular(()=>{const ue=de=>{this._activeDragInstances.length&&q.next(de)};return k.addEventListener("scroll",ue,true),()=>{k.removeEventListener("scroll",ue,true)}}))),(0,g.T)(...W)}ngOnDestroy(){this._dragInstances.forEach(k=>this.removeDragItem(k)),this._dropInstances.forEach(k=>this.removeDropContainer(k)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((k,W)=>{this._document.removeEventListener(W,k.handler,k.options)}),this._globalListeners.clear()}}He.\u0275fac=function(k){return new(k||He)(o.LFG(o.R0b),o.LFG(n.K0))},He.\u0275prov=o.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}); 74/** 75 * @license 76 * Copyright Google LLC All Rights Reserved. 77 * 78 * Use of this source code is governed by an MIT-style license that can be 79 * found in the LICENSE file at https://angular.io/license 80 */ 81const qe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};class Ke{constructor(k,W,q,re){this._document=k,this._ngZone=W,this._viewportRuler=q,this._dragDropRegistry=re}createDrag(k,W=qe){return new z(k,W,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(k){return new Be(k,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}Ke.\u0275fac=function(k){return new(k||Ke)(o.LFG(n.K0),o.LFG(o.R0b),o.LFG(x.rL),o.LFG(He))},Ke.\u0275prov=o.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}); 82/** 83 * @license 84 * Copyright Google LLC All Rights Reserved. 85 * 86 * Use of this source code is governed by an MIT-style license that can be 87 * found in the LICENSE file at https://angular.io/license 88 */ 89const Je=new o.OlP("CDK_DRAG_PARENT"),tt=new o.OlP("CdkDropListGroup"); 90/** 91 * @license 92 * Copyright Google LLC All Rights Reserved. 93 * 94 * Use of this source code is governed by an MIT-style license that can be 95 * found in the LICENSE file at https://angular.io/license 96 */class it{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,a.Ig)(k)}ngOnDestroy(){this._items.clear()}}it.\u0275fac=function(k){return new(k||it)},it.\u0275dir=o.lG2({type:it,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[o._Bn([{provide:tt,useExisting:it}])]}); 97/** 98 * @license 99 * Copyright Google LLC All Rights Reserved. 100 * 101 * Use of this source code is governed by an MIT-style license that can be 102 * found in the LICENSE file at https://angular.io/license 103 */ 104const at=new o.OlP("CDK_DRAG_CONFIG"); 105/** 106 * @license 107 * Copyright Google LLC All Rights Reserved. 108 * 109 * Use of this source code is governed by an MIT-style license that can be 110 * found in the LICENSE file at https://angular.io/license 111 */ 112/** 113 * @license 114 * Copyright Google LLC All Rights Reserved. 115 * 116 * Use of this source code is governed by an MIT-style license that can be 117 * found in the LICENSE file at https://angular.io/license 118 */ 119let ot=0;const Ze=new o.OlP("CdkDropList");class et{constructor(k,W,q,re,ue,de,ye){this.element=k,this._changeDetectorRef=q,this._scrollDispatcher=re,this._dir=ue,this._group=de,this._destroyed=new s.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+ot++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new o.vpe,this.entered=new o.vpe,this.exited=new o.vpe,this.sorted=new o.vpe,this._unsortedItems=new Set,this._dropListRef=W.createDropList(k),this._dropListRef.data=this,ye&&this._assignDefaults(ye),this._dropListRef.enterPredicate=(Ae,Ie)=>
119this.enterPredicate(Ae.data,Ie.data),this._dropListRef.sortPredicate=(Ae,Ie,$e)=>this.sortPredicate(Ae,Ie.data,$e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),et._dropLists.push(this),de&&de._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(k){this._dropListRef.disabled=this._disabled=(0,a.Ig)(k)}addItem(k){this._unsortedItems.add(k),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(k){this._unsortedItems.delete(k),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((k,W)=>k._dragRef.getVisibleElement().compareDocumentPosition(W._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const k=et._dropLists.indexOf(this);k>-1&&et._dropLists.splice(k,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(k){this._dir&&this._dir.change.pipe((0,w.O)(this._dir.value),(0,A.R)(this._destroyed)).subscribe(W=>k.withDirection(W)),k.beforeStarted.subscribe(()=>{const W=(0,a.Eq)(this.connectedTo).map(q=>{if("string"==typeof q){return et._dropLists.find(ue=>ue.id===q)}return q});if(this._group&&this._group._items.forEach(q=>{-1===W.indexOf(q)&&W.push(q)}),!this._scrollableParentsResolved){const q=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(re=>re.getElementRef().nativeElement);this._dropListRef.withScrollableParents(q),this._scrollableParentsResolved=!0}k.disabled=this.disabled,k.lockAxis=this.lockAxis,k.sortingDisabled=(0,a.Ig)(this.sortingDisabled),k.autoScrollDisabled=(0,a.Ig)(this.autoScrollDisabled),k.autoScrollStep=(0,a.su)(this.autoScrollStep,2),k.connectedTo(W.filter(q=>q&&q!==this).map(q=>q._dropListRef)).withOrientation(this.orientation)})}_handleEvents(k){k.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),k.entered.subscribe(W=>{this.entered.emit({container:this,item:W.item.data,currentIndex:W.currentIndex})}),k.exited.subscribe(W=>{this.exited.emit({container:this,item:W.item.data}),this._changeDetectorRef.markForCheck()}),k.sorted.subscribe(W=>{this.sorted.emit({previousIndex:W.previousIndex,currentIndex:W.currentIndex,container:this,item:W.item.data})}),k.dropped.subscribe(W=>{this.dropped.emit({previousIndex:W.previousIndex,currentIndex:W.currentIndex,previousContainer:W.previousContainer.data,container:W.container.data,item:W.item.data,isPointerOverContainer:W.isPointerOverContainer,distance:W.distance,dropPoint:W.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(k){const{lockAxis:W,draggingDisabled:q,sortingDisabled:re,listAutoScrollDisabled:ue,listOrientation:de}=k;this.disabled=null!=q&&q,this.sortingDisabled=null!=re&&re,this.autoScrollDisabled=null!=ue&&ue,this.orientation=de||"vertical",W&&(this.lockAxis=W)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(k=>k._dragRef))}}et._dropLists=[],et.\u0275fac=function(k){return new(k||et)(o.Y36(o.SBq),o.Y36(Ke),o.Y36(o.sBO),o.Y36(x.mF),o.Y36(L.Is,8),o.Y36(tt,12),o.Y36(at,8))},et.\u0275dir=o.lG2({type:et,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(k,W){2&k&&(o.uIk("id",W.id),o.ekj("cdk-drop-list-disabled",W.disabled)("cdk-drop-list-dragging",W._dropListRef.isDragging())("cdk-drop-list-receiving",W._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[o._Bn([{provide:tt,useValue:void 0},{provide:Ze,useExisting:et}])]}); 120/** 121 * @license 122 * Copyright Google LLC All Rights Reserved. 123 * 124 * Use of this source code is governed by an MIT-style license that can be 125 * found in the LICENSE file at https://angular.io/license 126 */ 127const ht=new o.OlP("CdkDragHandle");class lt{constructor(k,W){this.element=k,this._stateChanges=new s.xQ,this._disabled=!1,this._parentDrag=W}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,a.Ig)(k),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}lt.\u0275fac=function(k){return new(k||lt)(o.Y36(o.SBq),o.Y36(Je,12))},lt.\u0275dir=o.lG2({type:lt,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[o._Bn([{provide:ht,useExisting:lt}])]}); 128/** 129 * @license 130 * Copyright Google LLC All Rights Reserved. 131 * 132 * Use of this source code is governed by an MIT-style license that can be 133 * found in the LICENSE file at https://angular.io/license 134 */ 135const gt=new o.OlP("CdkDragPlaceholder");class mt{constructor(k){this.templateRef=k}}mt.\u0275fac=function(k){return new(k||mt)(o.Y36(o.Rgc))},mt.\u0275dir=o.lG2({type:mt,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[o._Bn([{provide:gt,useExisting:mt}])]}); 136/** 137 * @license 138 * Copyright Google LLC All Rights Reserved. 139 * 140 * Use of this source code is governed by an MIT-style license that can be 141 * found in the LICENSE file at https://angular.io/license 142 */ 143const _t=new o.OlP("CdkDragPreview");class Ye{constructor(k){this.templateRef=k,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(k){this._matchSize=(0,a.Ig)(k)}}Ye.\u0275fac=function(k){return new(k||Ye)(o.Y36(o.Rgc))},Ye.\u0275dir=o.lG2({type:Ye,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[o._Bn([{provide:_t,useExisting:Ye}])]});class rt{constructor(k,W,q,re,ue,de,ye,Ae,Ie,$e,st){this.element=k,this.dropContainer=W,this._ngZone=re,this._viewContainerRef
143=ue,this._dir=ye,this._changeDetectorRef=Ie,this._selfHandle=$e,this._parentDrag=st,this._destroyed=new s.xQ,this.started=new o.vpe,this.released=new o.vpe,this.ended=new o.vpe,this.entered=new o.vpe,this.exited=new o.vpe,this.dropped=new o.vpe,this.moved=new u.y(J=>{const Q=this._dragRef.moved.pipe((0,U.U)(G=>({source:this,pointerPosition:G.pointerPosition,event:G.event,delta:G.delta,distance:G.distance}))).subscribe(J);return()=>{Q.unsubscribe()}}),this._dragRef=Ae.createDrag(k,{dragStartThreshold:de&&null!=de.dragStartThreshold?de.dragStartThreshold:5,pointerDirectionChangeThreshold:de&&null!=de.pointerDirectionChangeThreshold?de.pointerDirectionChangeThreshold:5,zIndex:null==de?void 0:de.zIndex}),this._dragRef.data=this,rt._dragInstances.push(this),de&&this._assignDefaults(de),W&&(this._dragRef._withDropContainer(W._dropListRef),W.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(k){this._disabled=(0,a.Ig)(k),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,F.q)(1),(0,A.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(k){const W=k.rootElementSelector,q=k.freeDragPosition;W&&!W.firstChange&&this._updateRootElement(),q&&!q.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const k=rt._dragInstances.indexOf(this);k>-1&&rt._dragInstances.splice(k,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var k;const W=this.element.nativeElement;let q=W;this.rootElementSelector&&(q=void 0!==W.closest?W.closest(this.rootElementSelector):null===(k=W.parentElement)||void 0===k?void 0:k.closest(this.rootElementSelector)),this._dragRef.withRootElement(q||W)}_getBoundaryElement(){const k=this.boundaryElement;return k?"string"==typeof k?this.element.nativeElement.closest(k):(0,a.fI)(k):null}_syncInputs(k){k.beforeStarted.subscribe(()=>{if(!k.isDragging()){const W=this._dir,q=this.dragStartDelay,re=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,ue=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;k.disabled=this.disabled,k.lockAxis=this.lockAxis,k.dragStartDelay="object"==typeof q&&q?q:(0,a.su)(q),k.constrainPosition=this.constrainPosition,k.previewClass=this.previewClass,k.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(re).withPreviewTemplate(ue).withPreviewContainer(this.previewContainer||"global"),W&&k.withDirection(W.value)}}),k.beforeStarted.pipe((0,F.q)(1)).subscribe(()=>{var W;if(this._parentDrag)return void k.withParent(this._parentDrag._dragRef);let q=this.element.nativeElement.parentElement;for(;q;){if(q.classList.contains("cdk-drag")){k.withParent((null===(W=rt._dragInstances.find(re=>re.element.nativeElement===q))||void 0===W?void 0:W._dragRef)||null);break}q=q.parentElement}})}_handleEvents(k){k.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),k.released.subscribe(()=>{this.released.emit({source:this})}),k.ended.subscribe(W=>{this.ended.emit({source:this,distance:W.distance,dropPoint:W.dropPoint}),this._changeDetectorRef.markForCheck()}),k.entered.subscribe(W=>{this.entered.emit({container:W.container.data,item:this,currentIndex:W.currentIndex})}),k.exited.subscribe(W=>{this.exited.emit({container:W.container.data,item:this})}),k.dropped.subscribe(W=>{this.dropped.emit({previousIndex:W.previousIndex,currentIndex:W.currentIndex,previousContainer:W.previousContainer.data,container:W.container.data,isPointerOverContainer:W.isPointerOverContainer,item:this,distance:W.distance,dropPoint:W.dropPoint})})}_assignDefaults(k){const{lockAxis:W,dragStartDelay:q,constrainPosition:re,previewClass:ue,boundaryElement:de,draggingDisabled:ye,rootElementSelector:Ae,previewContainer:Ie}=k;this.disabled=null!=ye&&ye,this.dragStartDelay=q||0,W&&(this.lockAxis=W),re&&(this.constrainPosition=re),ue&&(this.previewClass=ue),de&&(this.boundaryElement=de),Ae&&(this.rootElementSelector=Ae),Ie&&(this.previewContainer=Ie)}_setupHandlesListener(){this._handles.changes.pipe((0,w.O)(this._handles),(0,y.b)(k=>{const W=k.filter(q=>q._parentDrag===this).map(q=>q.element);this._selfHandle&&this.rootElementSelector&&W.push(this.element),this._dragRef.withHandles(W)}),(0,S.w)(k=>(0,g.T)(...k.map(W=>W._stateChanges.pipe((0,w.O)(W))))),(0,A.R)(this._destroyed)).subscribe(k=>{const W=this._dragRef,q=k.element.nativeElement;k.disabled?W.disableHandle(q):W.enableHandle(q)})}}rt._dragInstances=[],rt.\u0275fac=function(k){return new(k||rt)(o.Y36(o.SBq),o.Y36(Ze,12),o.Y36(n.K0),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(at,8),o.Y36(L.Is,8),o.Y36(Ke),o.Y36(o.sBO),o.Y36(ht,10),o.Y36(Je,12))},rt.\u0275dir=o.lG2({type:rt,selectors:[["","cdkDrag",""]],contentQueries:function(k,W,q){if(1&k&&(o.Suo(q,_t,5),o.Suo(q,gt,5),o.Suo(q,ht,5)),2&k){let re;o.iGM(re=o.CRH())&&(W._previewTemplate=re.first),o.iGM(re=o.CRH())&&(W._placeholderTemplate=re.first),o.iGM(re=o.CRH())&&(W._handles=re)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(k,W){2&k&&o.ekj("cdk-drag-disabled",W.disabled)("cdk-drag-dragging",W._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boun
143daryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[o._Bn([{provide:Je,useExisting:rt}]),o.TTD]}); 144/** 145 * @license 146 * Copyright Google LLC All Rights Reserved. 147 * 148 * Use of this source code is governed by an MIT-style license that can be 149 * found in the LICENSE file at https://angular.io/license 150 */ 151class bt{}bt.\u0275fac=function(k){return new(k||bt)},bt.\u0275mod=o.oAB({type:bt,declarations:[et,it,rt,lt,Ye,mt],exports:[x.ZD,et,it,rt,lt,Ye,mt]}),bt.\u0275inj=o.cJS({providers:[Ke],imports:[x.ZD]})} 152/** 153 * @license 154 * Copyright Google LLC All Rights Reserved. 155 * 156 * Use of this source code is governed by an MIT-style license that can be 157 * found in the LICENSE file at https://angular.io/license 158 */ 159/** 160 * @license 161 * Copyright Google LLC All Rights Reserved. 162 * 163 * Use of this source code is governed by an MIT-style license that can be 164 * found in the LICENSE file at https://angular.io/license 165 */,11580:(O,v,e)=>{"use strict";e.d(v,{KP:()=>R});var o=e(11048),n=e(89724),l=e(51531),a=e(92541),d=e(44482),u=e(1659),c=e(21278),t=e(6344),h=e(13464),i=e(47188),s=e(497);const r=["sliderWrapper"],f=(0,t.i$)({passive:!1}),F={provide:u.JU,useExisting:(0,n.Gpc)(()=>x),multi:!0};class y{}const S=(0,l.sb)((0,l.pj)((0,l.Id)(class{constructor(_){this._elementRef=_}}),"accent"));class x extends S{constructor(m,b,C,D,I,P,B,p){super(m),this._focusMonitor=b,this._changeDetectorRef=C,this._dir=D,this._ngZone=P,this._animationMode=p,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new n.vpe,this.input=new n.vpe,this.valueChange=new n.vpe,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=h.w.EMPTY,this._pointerDown=Y=>{this.disabled||this._isSliding||!L(Y)&&0!==Y.button||this._ngZone.run(()=>{this._touchId=L(Y)?function(_,m){for(let b=0;b<_.touches.length;b++){const C=_.touches[b].target;if(m===C||m.contains(C))return _.touches[b].identifier}} 166/** 167 * @license 168 * Copyright Google LLC All Rights Reserved. 169 * 170 * Use of this source code is governed by an MIT-style license that can be 171 * found in the LICENSE file at https://angular.io/license 172 */(Y,this._elementRef.nativeElement):void 0;const j=H(Y,this._touchId);if(j){const ee=this.value;this._isSliding="pointer",this._lastPointerEvent=Y,Y.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(Y),this._focusHostElement(),this._updateValueFromPosition(j),this._valueOnSlideStart=ee,ee!=this.value&&this._emitInputEvent()}})},this._pointerMove=Y=>{if("pointer"===this._isSliding){const j=H(Y,this._touchId);if(j){Y.preventDefault();const ee=this.value;this._lastPointerEvent=Y,this._updateValueFromPosition(j),ee!=this.value&&this._emitInputEvent()}}},this._pointerUp=Y=>{"pointer"===this._isSliding&&(!L(Y)||"number"!=typeof this._touchId||K(Y.changedTouches,this._touchId))&&(Y.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=B,this.tabIndex=parseInt(I)||0,P.runOutsideAngular(()=>{const Y=m.nativeElement;Y.addEventListener("mousedown",this._pointerDown,f),Y.addEventListener("touchstart",this._pointerDown,f)})}get invert(){return this._invert}set invert(m){this._invert=(0,a.Ig)(m)}get max(){return this._max}set max(m){this._max=(0,a.su)(m,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(m){this._min=(0,a.su)(m,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(m){this._step=(0,a.su)(m,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(m){this._thumbLabel=(0,a.Ig)(m)}get tickInterval(){return this._tickInterval}set tickInterval(m){this._tickInterval="auto"===m?"auto":"number"==typeof m||"string"==typeof m?(0,a.su)(m,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(m){if(m!==this._value){let b=(0,a.su)(m,0);this._roundToDecimal&&b!==this.min&&b!==this.max&&(b=parseFloat(b.toFixed(this._roundToDecimal))),this._value=b,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(m){this._vertical=(0,a.Ig)(m)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(m){this._focusHostElement(m)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}
172_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const m=this.vertical?"Y":"X",b=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${m}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${b})`}}_getTrackFillStyles(){const m=this.percent,b=this.vertical?"Y":"X",C=this.vertical?`1, ${m}, 1`:`${m}, 1, 1`;return{transform:`translate${b}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${C})`,display:0===m?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let m=100*this._tickIntervalPercent,P={backgroundSize:this.vertical?`2px ${m}%`:`${m}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${m/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const B=this._shouldInvertAxis();let p;p=this.vertical?B?"Bottom":"Top":B?"Right":"Left",P[`padding${p}`]=`${this._getThumbGap()}px`}return P}_getThumbContainerStyles(){const m=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?m:!m)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const m=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?m:!m}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(m=>{this._isActive=!!m&&"keyboard"!==m,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const m=this._elementRef.nativeElement;m.removeEventListener("mousedown",this._pointerDown,f),m.removeEventListener("touchstart",this._pointerDown,f),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(m){if(this.disabled||(0,d.Vb)(m)||this._isSliding&&"keyboard"!==this._isSliding)return;const b=this.value;switch(m.keyCode){case d.Ku:this._increment(10);break;case d.VM:this._increment(-10);break;case d.uR:this.value=this.max;break;case d.Sd:this.value=this.min;break;case d.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case d.LH:this._increment(1);break;case d.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case d.JH:this._increment(-1);break;default:return}b!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",m.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(m){const b=this._document,C=L(m),D=C?"touchmove":"mousemove",I=C?"touchend":"mouseup";b.addEventListener(D,this._pointerMove,f),b.addEventListener(I,this._pointerUp,f),C&&b.addEventListener("touchcancel",this._pointerUp,f);const P=this._getWindow();void 0!==P&&P&&P.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const m=this._document;m.removeEventListener("mousemove",this._pointerMove,f),m.removeEventListener("mouseup",this._pointerUp,f),m.removeEventListener("touchmove",this._pointerMove,f),m.removeEventListener("touchend",this._pointerUp,f),m.removeEventListener("touchcancel",this._pointerUp,f);const b=this._getWindow();void 0!==b&&b&&b.removeEventListener("blur",this._windowBlur)}_increment(m){this.value=this._clamp((this.value||0)+this.step*m,this.min,this.max)}_updateValueFromPosition(m){if(!this._sliderDimensions)return;let b=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,C=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,D=this.vertical?m.y:m.x,I=this._clamp((D-b)/C);if(this._shouldInvertMouseCoords()&&(I=1-I),0===I)this.value=this.min;else if(1===I)this.value=this.max;else{const P=this._calculateValue(I),B=Math.round((P-this.min)/this.step)*this.step+this.min;this.value=this._clamp(B,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let m=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,b=m*this.step/(this.max-this.min),D=Math.ceil(30/b)*this.step;this._tickIntervalPercent=D/m}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(m=this.value){let b=new y;return b.source=this,b.value=m,b}_calculatePercentage(m){return((m||0)-this.min)/(this.max-this.min)}_calculateValue(m){return this.min+m*(this.max-this.min)}_clamp(m,b=0,C=1){return Math.max(b,Math.min(m,C))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(m){this._elementRef.nativeElement.focus(m)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(m){this.value=m}registerOnChange(m){this._controlValueAccessorChangeFn=m}registerOnTouched(m){this.onTouched=m}setDisabledState(m){this.disabled=m}}function L(_){return"t"===_.type[0]}function H(_,m){let b;return b=L(_)?"number"==typeof m?K(_.touches,m)||K(_.changedTouches,m):_.touches[0]||_.changedTouches[0]:_,b?{x:b.clientX,y:b.clientY}:void 0}function K(_,m){for(let b=0;b<_.length;b++)if(_[b].identifier===m)return _[b]}x.\u0275fac=function(m){return new(m||x)(n.Y36(n.SBq),n.Y36(i.tE
172),n.Y36(n.sBO),n.Y36(s.Is,8),n.$8M("tabindex"),n.Y36(n.R0b),n.Y36(o.K0),n.Y36(c.Qb,8))},x.\u0275cmp=n.Xpm({type:x,selectors:[["mat-slider"]],viewQuery:function(m,b){if(1&m&&n.Gf(r,5),2&m){let C;n.iGM(C=n.CRH())&&(b._sliderWrapper=C.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(m,b){1&m&&n.NdJ("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()})("keydown",function(D){return b._onKeydown(D)})("keyup",function(){return b._onKeyup()})("mouseenter",function(){return b._onMouseenter()})("selectstart",function(D){return D.preventDefault()}),2&m&&(n.Ikx("tabIndex",b.tabIndex),n.uIk("aria-disabled",b.disabled)("aria-valuemax",b.max)("aria-valuemin",b.min)("aria-valuenow",b.value)("aria-valuetext",null==b.valueText?b.displayValue:b.valueText)("aria-orientation",b.vertical?"vertical":"horizontal"),n.ekj("mat-slider-disabled",b.disabled)("mat-slider-has-ticks",b.tickInterval)("mat-slider-horizontal",!b.vertical)("mat-slider-axis-inverted",b._shouldInvertAxis())("mat-slider-invert-mouse-coords",b._shouldInvertMouseCoords())("mat-slider-sliding",b._isSliding)("mat-slider-thumb-label-showing",b.thumbLabel)("mat-slider-vertical",b.vertical)("mat-slider-min-value",b._isMinValue())("mat-slider-hide-last-tick",b.disabled||b._isMinValue()&&b._getThumbGap()&&b._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[n._Bn([F]),n.qOj],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(m,b){1&m&&(n.TgZ(0,"div",0,1),n.TgZ(2,"div",2),n._UZ(3,"div",3),n._UZ(4,"div",4),n.qZA(),n.TgZ(5,"div",5),n._UZ(6,"div",6),n.qZA(),n.TgZ(7,"div",7),n._UZ(8,"div",8),n._UZ(9,"div",9),n.TgZ(10,"div",10),n.TgZ(11,"span",11),n._uU(12),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&m&&(n.xp6(3),n.Q6J("ngStyle",b._getTrackBackgroundStyles()),n.xp6(1),n.Q6J("ngStyle",b._getTrackFillStyles()),n.xp6(1),n.Q6J("ngStyle",b._getTicksContainerStyles()),n.xp6(1),n.Q6J("ngStyle",b._getTicksStyles()),n.xp6(1),n.Q6J("ngStyle",b._getThumbContainerStyles()),n.xp6(5),n.Oqu(b.displayValue))},directives:[o.PC],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}
172.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0});class R{}R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=n.oAB({type:R,declarations:[x],imports:[o.ez,l.BQ],exports:[x,l.BQ]}),R.\u0275inj=n.cJS({imports:[[o.ez,l.BQ],l.BQ]})} 173/** 174 * @license 175 * Copyright Google LLC All Rights Reserved. 176 * 177 * Use of this source code is governed by an MIT-style license that can be 178 * found in the LICENSE file at https://angular.io/license 179 */ 180/** 181 * @license 182 * Copyright Google LLC All Rights Reserved. 183 * 184 * Use of this source code is governed by an MIT-style license that can be 185 * found in the LICENSE file at https://angular.io/license 186 */,13775:(O,v,e)=>{"use strict";e.d(v,{Iq:()=>t,Yv:()=>d});var o=e(11048),n=e(89724);const l=new n.OlP("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});var a=e(79765);class d{constructor(i,s,r){this.ngZone=i,this.document=s,this.window=r,this.copySubject=ne
186w a.xQ,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(i){this.config=i}copy(i){if(!this.isSupported||!i)return this.pushCopyResponse({isSuccess:!1,content:i});const s=this.copyFromContent(i);return s?this.pushCopyResponse({content:i,isSuccess:s}):this.pushCopyResponse({isSuccess:!1,content:i})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(i){if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement){if(i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(i,s=!0){try{this.selectTarget(i);const r=this.copyText();return this.clearSelection(s?i:void 0,this.window),r&&this.isCopySuccessInIE11()}catch(r){return!1}}isCopySuccessInIE11(){const i=this.window.clipboardData;return!(i&&i.getData&&!i.getData("Text"))}copyFromContent(i,s=this.document.body){if(this.tempTextArea&&!s.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{s.appendChild(this.tempTextArea)}catch(f){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=i;const r=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),r}destroy(i=this.document.body){this.tempTextArea&&(i.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(i){return i.select(),i.setSelectionRange(0,i.value.length),i.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(i,s){var r;i&&i.focus(),null===(r=s.getSelection())||void 0===r||r.removeAllRanges()}createTempTextArea(i,s){const r="rtl"===i.documentElement.getAttribute("dir");let f;f=i.createElement("textarea"),f.style.fontSize="12pt",f.style.border="0",f.style.padding="0",f.style.margin="0",f.style.position="absolute",f.style[r?"right":"left"]="-9999px";const g=s.pageYOffset||i.documentElement.scrollTop;return f.style.top=g+"px",f.setAttribute("readonly",""),f}pushCopyResponse(i){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(i)})}pushCopyReponse(i){this.pushCopyResponse(i)}}d.\u0275fac=function(i){return new(i||d)(n.LFG(n.R0b),n.LFG(o.K0),n.LFG(l,8))},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"});class u{constructor(i,s,r,f){this.ngZone=i,this.host=s,this.renderer=r,this.clipboardSrv=f,this.cbOnSuccess=new n.vpe,this.cbOnError=new n.vpe,this.onClick=g=>{this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,g):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,g):this.handleResult(!1,void 0,g)}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.clickListener=this.renderer.listen(this.host.nativeElement,"click",this.onClick)})}ngOnDestroy(){this.clickListener&&this.clickListener(),this.clipboardSrv.destroy(this.container)}handleResult(i,s,r){let f={isSuccess:i,event:r};i?this.cbOnSuccess.observers.length>0&&(f=Object.assign(f,{content:s,successMessage:this.cbSuccessMsg}),this.ngZone.run(()=>{this.cbOnSuccess.emit(f)})):this.cbOnError.observers.length>0&&this.ngZone.run(()=>{this.cbOnError.emit(f)}),this.clipboardSrv.pushCopyResponse(f)}}u.\u0275fac=function(i){return new(i||u)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(d))},u.\u0275dir=n.lG2({type:u,selectors:[["","ngxClipboard",""]],inputs:{targetElm:["ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"}});class c{constructor(i,s,r){this._clipboardService=i,this._viewContainerRef=s,this._templateRef=r}ngOnInit(){this._clipboardService.isSupported&&this._viewContainerRef.createEmbeddedView(this._templateRef)}}c.\u0275fac=function(i){return new(i||c)(n.Y36(d),n.Y36(n.s_b),n.Y36(n.Rgc))},c.\u0275dir=n.lG2({type:c,selectors:[["","ngxClipboardIfSupported",""]]});class t{}t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=n.oAB({type:t,declarations:[u,c],imports:[o.ez],exports:[u,c]}),t.\u0275inj=n.cJS({imports:[[o.ez]]})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.